Class IRequiresTraitsMethods
Inheritance
IRequiresTraitsMethods
Syntax
public static class IRequiresTraitsMethods
Fields
StaticRequiredTraitsBindingFlags
Declaration
public const BindingFlags StaticRequiredTraitsBindingFlags = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy
Field Value
StaticRequiredTraitsFieldName
Declaration
public const string StaticRequiredTraitsFieldName = "k_RequiredTraits"
Field Value
Methods
ForEachContextIdWithTrait<T>(IRequiresTraits<T>, String, Action<Int32>)
Declaration
public static void ForEachContextIdWithTrait<T>(this IRequiresTraits<T> obj, string traitName, Action<int> forEach)
Parameters
Type Parameters
TryGetAllTraitsWithSemanticTag<T>(IRequiresTraits<T>, String, String, out Dictionary<Int32, T>)
Declaration
public static bool TryGetAllTraitsWithSemanticTag<T>(this IRequiresTraits<T> obj, string traitName, string tag, out Dictionary<int, T> values)
Parameters
Returns
Type Parameters
TryGetTraitValue<T>(IRequiresTraits<T>, Int32, String, out T)
Declaration
public static bool TryGetTraitValue<T>(this IRequiresTraits<T> obj, int dataID, string traitName, out T value)
Parameters
Returns
Type Parameters