| ReflectionUtilitiesTryAddRelevantValueSettersT Method |
Attempts to add ValueSetter(s) to a GameObject for each other Component that has values we can set.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool TryAddRelevantValueSetters<T>(
this GameObject gameObject,
out List<ValueSetter<T>> settersAdded
)
where T : struct, new()
Parameters
- gameObject
- Type: GameObject
The GameObject we are searching and adding to. - settersAdded
- Type: System.Collections.GenericListValueSetterT
The setters we actually added to the GameObject.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:DustProductions.Core.ReflectionUtilities.TryAddRelevantValueSetters``1(UnityEngine.GameObject,System.Collections.Generic.List{DustProductions.Core.ValueSetter{``0}}@)"]
Return Value
Type:
BooleanTrue if no errors are encountered AND setters are added, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also