C# Class UnityCommonLibrary.Attributes.RelativesOnlyAttribute

Inheritance: UnityEngine.PropertyAttribute
Afficher le fichier Open project: thebeardphantom/UnityCommonLibrary Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

IsRuleSet() public méthode

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

RelativesOnlyAttribute() public méthode

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
Résultat System

RelativesOnlyAttribute() public méthode

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