TextStudio3DShaderContractAsset
public sealed class TextStudio3DShaderContractAsset : ScriptableObjectAuthoring data for a customer shader. Put an asset below a Resources/TextStudio3D/ShaderContracts directory for automatic registration in Editor and Player, or explicitly register CreateContract(). Authoring arrays are copied into immutable declarations and are never used as live renderer state.
Methods
Section titled “Methods”
CreateContract()
Section titled “CreateContract()”public TextStudio3DShaderContract CreateContract()Copies and validates this asset's pipeline and pass data into an immutable shader contract.
Returns
TextStudio.ThreeD.TextStudio3DShaderContract
Constructors
Section titled “Constructors”
TextStudio3DShaderContractAsset()
Section titled “TextStudio3DShaderContractAsset()”public TextStudio3DShaderContractAsset()Properties
Section titled “Properties”
Shader
Section titled “Shader”public Shader Shader { get; }Returns
UnityEngine.Shader
ContractId
Section titled “ContractId”public string ContractId { get; }Returns
System.String