Click or drag to resize

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: (
public static bool TryAddRelevantValueSetters<T>(
	this GameObject gameObject,
	out List<ValueSetter<T>> settersAdded
where T : struct, new()


Type: GameObject
The GameObject we are searching and adding to.
Type: System.Collections.GenericListValueSetterT
The setters we actually added to the GameObject.

Type Parameters


[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: Boolean
True 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