Explicitly set the editor visibility of a script field or class.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)]public class EditorVisibleAttribute : AttributeRemarks
By default only public fields are exposed in the editor. Using this attribute, protected, private or internal fields may be exposed as well. Classes can be hidden setting this attribute to false.
Members at a glance
| Kind | Members |
|---|---|
| Constructors | EditorVisibleAttribute |
| Properties | Visible |
Constructors
EditorVisibleAttribute
public EditorVisibleAttribute()Mark a non-public script field as visible in the editor.
public EditorVisibleAttribute(bool visible)Explicitly set the visibility of a field or class
| Parameter | Type | Description |
|---|---|---|
visible | bool |
Properties
Visible
public bool Visible { get; set; }The visibility value.
Generated from the Sansar 47.10.0 client ScriptApi snapshot.