Skip to content

TextStudioDefaultAttribute

ClassTextStudioTextStudio
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class TextStudioDefaultAttribute : PropertyAttribute

Marks a field with a recommended default. The default property drawer renders a small reset button next to the field; clicking it writes the default back via reflection.

public TextStudioDefaultAttribute(object value)

Declares the authoring default used when an effect parameter is omitted.

Parameters

Name Type
value System.Object

public object Value { get; }

Returns

System.Object