Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Quantum.OptionalAttribute Class Reference

Marks a field as optional. In Unity, the path passed will serve as the toggle to enable/disable. More...

Inheritance diagram for Quantum.OptionalAttribute:
Quantum.DecoratingPropertyAttribute Quantum.PropertyAttribute

Public Member Functions

 OptionalAttribute (string enabledPropertyPath)
 Initializes a new instance of the OptionalAttribute class. More...
 

Properties

string EnabledPropertyPath [get]
 Gets the path to the property that serves as the toggle to enable/disable. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 
- Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute
 DecoratingPropertyAttribute ()
 Initializes a new instance with the default order. More...
 
 DecoratingPropertyAttribute (int order)
 Initializes a new instance with the specified order. More...
 

Detailed Description

Marks a field as optional. In Unity, the path passed will serve as the toggle to enable/disable.

Constructor & Destructor Documentation

◆ OptionalAttribute()

Quantum.OptionalAttribute.OptionalAttribute ( string  enabledPropertyPath)
inline

Initializes a new instance of the OptionalAttribute class.

Parameters
enabledPropertyPathThe path to the property that serves as the toggle to enable/disable.

Property Documentation

◆ EnabledPropertyPath

string Quantum.OptionalAttribute.EnabledPropertyPath
get

Gets the path to the property that serves as the toggle to enable/disable.