PropertyChaining.SetReference<T>
Extension Method in PropertyChaining
Declaration
public static T SetReference<T>(this T tween, UnityEngine.Component reference)
where T : TweenDescription
Sets the id and scene index of the tween to the reference component so the tween can be retrieved and destroyed based on that component.
Type Parameters
| T | The type of the tween. |
Parameters
| tween | The tween to assign the reference to. |
| reference | The reference component. |
Returns
| T | The tween itself to allow for chaining. |
Overload
Declaration
public static T SetReference<T>(this T tween, UnityEngine.GameObject reference)
where T : TweenDescription
Sets the id and scene index of the tween to the reference game object so the tween can be retrieved and destroyed based on that game object.
Type Parameters
| T | The type of the tween. |
Parameters
| tween | The tween to assign the reference to. |
| reference | The reference game object. |
Returns
| T | The tween itself to allow for chaining. |
Overload
Declaration
public static T SetReference<T>(this T tween, UnityEngine.Object reference)
where T : TweenDescription
Sets the id and scene index of the tween to the reference object so the tween can be retrieved and destroyed based on that object.
Type Parameters
| T | The type of the tween. |
Parameters
| tween | The tween to assign the reference to. |
| reference | The reference object. |
Returns
| T | The tween itself to allow for chaining. |