Game.UI.Editor.HideInEditorAttribute
Assembly:
(Assembly not specified in source file — this type is defined in the game's code base, likely in the Game or Game.UI assembly)
Namespace:
Game.UI.Editor
Type:
class
Base:
System.Attribute
Summary:
Marks a program element to indicate it should be hidden in the game's editor UI. This is a simple marker attribute with no data or behavior by itself; editor tooling or mod code should detect the presence of this attribute and hide the annotated element in editor views.
Fields
- This class declares no instance or static fields.
The attribute carries no state.
Properties
- This class declares no properties.
Constructors
public HideInEditorAttribute()
Default parameterless constructor. The compiler provides this implicitly; the attribute contains no initialization logic.
Methods
- This class declares no methods.
Usage Example
// Apply to a class to hide it in editor UI
[HideInEditor]
public class DebugOnlyComponent
{
// ...
}
// Apply to a field or property to hide it from editor inspectors
public class MyComponent
{
[HideInEditor]
public int internalId;
}
Notes: - The attribute does not specify an AttributeUsage in the source; therefore it uses the default AttributeUsage (applicable to all targets, AllowMultiple = false, Inherited = true). Editor/mod code should check for the attribute where appropriate and implement hiding behavior.