Skip to content

QualityTierSelector

ClassTextStudio.ThreeDTextStudio.3D
public sealed class QualityTierSelector : ISerializationCallbackReceiver

Finite construction levels and explicit error budgets. Construction detail is independent of runtime scheduling.

public const int CurrentSchema = 1

Returns

System.Int32

public QualityTierSelector()

public QualityTierSelector(QualityTierSelector source)

Copies a selector's budget, construction requests, and serialized migration state.

Parameters

Name Type
source TextStudio.ThreeD.QualityTierSelector

public QualityTierSelector Clone()

Returns an independent copy of the selector and its construction levels.

Returns

TextStudio.ThreeD.QualityTierSelector

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
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

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}
public void OnBeforeSerialize()

Stamps new selectors with the current serialized quality schema.

public void OnAfterDeserialize()

Preserves legacy values and maps valid historical construction settings for explicit migration.

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

public TextStudio3DQualityMigrationStatus MigrationStatus { get; }

Returns

TextStudio.ThreeD.TextStudio3DQualityMigrationStatus

public ReadOnlySpan<TextStudio3DQualityConstructionLevel> CoarserLevels { get; }

Returns

System.ReadOnlySpan{TextStudio.ThreeD.TextStudio3DQualityConstructionLevel}

public string MigrationSummary { get; }

Returns

System.String

public string ConstructionDiagnostic { get; }

Invalid serialized construction requests are retained for recovery and cannot publish reduced levels.

Returns

System.String