Skip to content

TextStudioRenderPropertyRegistry

ClassTextStudioTextStudio
public static class TextStudioRenderPropertyRegistry

Registry for typed renderer properties. Serialized assets retain stable IDs.

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

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

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}