QualityTierSelector
public sealed class QualityTierSelector : ISerializationCallbackReceiverFinite construction levels and explicit error budgets. Construction detail is independent of runtime scheduling.
Fields
Section titled “Fields”
CurrentSchema
Section titled “CurrentSchema”public const int CurrentSchema = 1Returns
System.Int32
Constructors
Section titled “Constructors”
QualityTierSelector()
Section titled “QualityTierSelector()”public QualityTierSelector()
QualityTierSelector(QualityTierSelector)
Section titled “QualityTierSelector(QualityTierSelector)”public QualityTierSelector(QualityTierSelector source)Copies a selector's budget, construction requests, and serialized migration state.
Parameters
| Name | Type |
|---|---|
source |
TextStudio.ThreeD.QualityTierSelector |
Methods
Section titled “Methods”
Clone()
Section titled “Clone()”public QualityTierSelector Clone()Returns an independent copy of the selector and its construction levels.
Returns
TextStudio.ThreeD.QualityTierSelector
SetBudget(in TextStudio3DQualityBudget)
Section titled “SetBudget(in TextStudio3DQualityBudget)”public void SetBudget(in TextStudio3DQualityBudget budget)Configures the explicit screen-space error budget used to qualify automatic levels.
Parameters
| Name | Type |
|---|---|
budget |
TextStudio.ThreeD.TextStudio3DQualityBudget |
ClearBudget()
Section titled “ClearBudget()”public void ClearBudget()Disables automatic quality qualification while retaining serialized recovery data.
TryGetBudget(out TextStudio3DQualityBudget)
Section titled “TryGetBudget(out TextStudio3DQualityBudget)”public bool TryGetBudget(out TextStudio3DQualityBudget budget)Reads a configured budget when its serialized schema and values are valid.
Parameters
| Name | Type |
|---|---|
budget |
TextStudio.ThreeD.TextStudio3DQualityBudget |
Returns
System.Boolean
SetCertificationLimits(in TextStudio3DQualityCertificationLimits)
Section titled “SetCertificationLimits(in TextStudio3DQualityCertificationLimits)”public void SetCertificationLimits(in TextStudio3DQualityCertificationLimits limits)Sets explicit error, work, and memory limits for constructing mesh quality certificates.
Parameters
| Name | Type |
|---|---|
limits |
TextStudio.ThreeD.TextStudio3DQualityCertificationLimits |
TryGetCertificationLimits(out TextStudio3DQualityCertificationLimits)
Section titled “TryGetCertificationLimits(out TextStudio3DQualityCertificationLimits)”public bool TryGetCertificationLimits(out TextStudio3DQualityCertificationLimits limits)Reads valid certification limits from the current serialized schema.
Parameters
| Name | Type |
|---|---|
limits |
TextStudio.ThreeD.TextStudio3DQualityCertificationLimits |
Returns
System.Boolean
SetCoarserLevels(ReadOnlySpan)
Section titled “SetCoarserLevels(ReadOnlySpan)”public void SetCoarserLevels(ReadOnlySpan<TextStudio3DQualityConstructionLevel> levels)Sets up to two ordered reduced construction levels beneath authored detail.
Parameters
| Name | Type |
|---|---|
levels |
System.ReadOnlySpan{TextStudio.ThreeD.TextStudio3DQualityConstructionLevel} |
OnBeforeSerialize()
Section titled “OnBeforeSerialize()”public void OnBeforeSerialize()Stamps new selectors with the current serialized quality schema.
OnAfterDeserialize()
Section titled “OnAfterDeserialize()”public void OnAfterDeserialize()Preserves legacy values and maps valid historical construction settings for explicit migration.
ProjectedHeight(Camera, Bounds)
Section titled “ProjectedHeight(Camera, Bounds)”public static float ProjectedHeight(Camera camera, Bounds bounds)Viewport-size diagnostic retained independently of error-based selection.
Parameters
| Name | Type |
|---|---|
camera |
UnityEngine.Camera |
bounds |
UnityEngine.Bounds |
Returns
System.Single
ProjectedHeight(Camera, Bounds, Matrix4x4)
Section titled “ProjectedHeight(Camera, Bounds, Matrix4x4)”public static float ProjectedHeight(Camera camera, Bounds bounds, Matrix4x4 localToWorld)Measures the viewport height of transformed bounds for diagnostics, returning zero when outside the camera.
Parameters
| Name | Type |
|---|---|
camera |
UnityEngine.Camera |
bounds |
UnityEngine.Bounds |
localToWorld |
UnityEngine.Matrix4x4 |
Returns
System.Single
Properties
Section titled “Properties”
MigrationStatus
Section titled “MigrationStatus”public TextStudio3DQualityMigrationStatus MigrationStatus { get; }Returns
TextStudio.ThreeD.TextStudio3DQualityMigrationStatus
CoarserLevels
Section titled “CoarserLevels”public ReadOnlySpan<TextStudio3DQualityConstructionLevel> CoarserLevels { get; }Returns
System.ReadOnlySpan{TextStudio.ThreeD.TextStudio3DQualityConstructionLevel}
MigrationSummary
Section titled “MigrationSummary”public string MigrationSummary { get; }Returns
System.String
ConstructionDiagnostic
Section titled “ConstructionDiagnostic”public string ConstructionDiagnostic { get; }Invalid serialized construction requests are retained for recovery and cannot publish reduced levels.
Returns
System.String