TextStudioRenderPropertyRegistry
public static class TextStudioRenderPropertyRegistryRegistry for typed renderer properties. Serialized assets retain stable IDs.
Methods
Section titled “Methods”
Register(in TextStudioRenderPropertyDescriptor)
Section titled “Register(in TextStudioRenderPropertyDescriptor)”public static bool Register(in TextStudioRenderPropertyDescriptor descriptor)Registers a valid render-property contract, accepting compatible existing registrations and rejecting conflicting contracts.
Parameters
| Name | Type |
|---|---|
descriptor |
TextStudio.TextStudioRenderPropertyDescriptor |
Returns
System.Boolean
Unregister(string)
Section titled “Unregister(string)”public static bool Unregister(string descriptorId)Removes a custom render-property registration, returning false for missing identifiers or built-in properties.
Parameters
| Name | Type |
|---|---|
descriptorId |
System.String |
Returns
System.Boolean
TryGet(string, out TextStudioRenderPropertyDescriptor)
Section titled “TryGet(string, out TextStudioRenderPropertyDescriptor)”public static bool TryGet(string descriptorId, out TextStudioRenderPropertyDescriptor descriptor)Attempts to retrieve the registered render-property descriptor for the supplied identifier.
Parameters
| Name | Type |
|---|---|
descriptorId |
System.String |
descriptor |
TextStudio.TextStudioRenderPropertyDescriptor |
Returns
System.Boolean
GetAll(List)
Section titled “GetAll(List)”public static void GetAll(List<TextStudioRenderPropertyDescriptor> descriptors)Replaces a supplied list with all registered descriptors sorted by category, display name, and identifier.
Parameters
| Name | Type |
|---|---|
descriptors |
System.Collections.Generic.List{TextStudio.TextStudioRenderPropertyDescriptor} |