C# Class UnityCommonLibrary.Attributes.RelativesOnlyAttribute

Inheritance: UnityEngine.PropertyAttribute
Exibir arquivo Open project: thebeardphantom/UnityCommonLibrary Class Usage Examples

Public Methods

Method Description
IsOnlyRuleSet ( ValidRelatives rule ) : bool

Check if a rule flag is the ONLY flag set.

IsRuleSet ( ValidRelatives rule ) : bool

Check if a rule flag is set.

RelativesOnlyAttribute ( ) : System

Restricts this field to only accept Objects that are in the same path in the Hierarchy as GameObject that owns this field.

RelativesOnlyAttribute ( ValidRelatives validRelatives ) : System

Restricts this field to only accept Objects that follow the rules set by validRelatives

Method Details

IsOnlyRuleSet() public method

Check if a rule flag is the ONLY flag set.
public IsOnlyRuleSet ( ValidRelatives rule ) : bool
rule ValidRelatives The rule to check.
return bool

IsRuleSet() public method

Check if a rule flag is set.
public IsRuleSet ( ValidRelatives rule ) : bool
rule ValidRelatives The rule to check.
return bool

RelativesOnlyAttribute() public method

Restricts this field to only accept Objects that are in the same path in the Hierarchy as GameObject that owns this field.
public RelativesOnlyAttribute ( ) : System
return System

RelativesOnlyAttribute() public method

Restricts this field to only accept Objects that follow the rules set by validRelatives
public RelativesOnlyAttribute ( ValidRelatives validRelatives ) : System
validRelatives ValidRelatives
return System