Skip to content

TextStudio3DVertexUploadPolicy

ClassTextStudio.ThreeDTextStudio.3D
public static class TextStudio3DVertexUploadPolicy

Selects a declared upload layout across all materials while keeping float as the qualified default.

public const int PackedUploadLayoutVersion = 1

Returns

System.Int32

Evaluate(TextStudio3DVertexUploadPreference, Material[], bool)

Section titled “Evaluate(TextStudio3DVertexUploadPreference, Material[], bool)”
public static TextStudio3DVertexUploadDecision Evaluate(TextStudio3DVertexUploadPreference preference, Material[] materials, bool extended)

Negotiates every material in an assembly. Invalid material modes still fail; unsupported packed paths explicitly select float.

Parameters

Name Type
preference TextStudio.ThreeD.TextStudio3DVertexUploadPreference
materials UnityEngine.Material[]
extended System.Boolean

Returns

TextStudio.ThreeD.TextStudio3DVertexUploadDecision

public static bool IsPacked(Mesh mesh)

The current uploaded format, independent of the requested preference. Reading this does not qualify a shader's normal interpolation.

Parameters

Name Type
mesh UnityEngine.Mesh

Returns

System.Boolean