Skip to main content

TweenMemberFactory

Namespace: MonineEngine.Mathematics.Tweening

Helper class for easily creating TweenMember<T>s.

public class TweenMemberFactory

Inheritance ObjectTweenMemberFactory

Constructors

TweenMemberFactory()

public TweenMemberFactory()

Methods

Create<T>(Object, String)

Creates a TweenMember<T> based on the target object and member name.

public static TweenMember<T> Create<T>(object target, string name)

Type Parameters

T
The type of the member to tween.

Parameters

target Object
The target object with the member to tween.

name String
The name of the member within the object to tween.

Returns

TweenMember<T>
The created TweenMember

Exceptions

NullReferenceException
No member was found with the given name.