Class VisibilityAttribute
Sets a criteria for the visibility of a property in the inspector
Inherited Members
Namespace: Unity.Services.Core.Internal
Assembly: Unity.Services.Core.Internal.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true)]
public class VisibilityAttribute : PropertyAttribute
Constructors
VisibilityAttribute(string, object)
Sets a criteria for the visibility of a property in the inspector
Declaration
public VisibilityAttribute(string propertyName, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property name to validate against |
| object | value | The value to compare to |
Properties
PropertyName
The property name to validate against
Declaration
public string PropertyName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Value
The value to validate against
Declaration
public object Value { get; }
Property Value
| Type | Description |
|---|---|
| object |