TextStudio3DVertexUploadPolicy
public static class TextStudio3DVertexUploadPolicySelects a declared upload layout across all materials while keeping float as the qualified default.
Fields
Section titled “Fields”
PackedUploadLayoutVersion
Section titled “PackedUploadLayoutVersion”public const int PackedUploadLayoutVersion = 1Returns
System.Int32
Methods
Section titled “Methods”
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
IsPacked(Mesh)
Section titled “IsPacked(Mesh)”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