Skip to content

Get Sansar

Script API

EditorVisibleAttribute

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits Attribute

Explicitly set the editor visibility of a script field or class.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)]
public class EditorVisibleAttribute : Attribute

Remarks

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

KindMembers
ConstructorsEditorVisibleAttribute
PropertiesVisible

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

ParameterTypeDescription
visiblebool

Properties

Visible

public bool Visible { get; set; }

The visibility value.

Generated from the Sansar 47.10.0 client ScriptApi snapshot.