C# Class UIPlayAnimation, TheUnseen

Inheritance: MonoBehaviour
ファイルを表示 Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
animator Animator
clearSelection bool
clipName string
disableWhenFinished DisableCondition
ifDisabledOnPlay EnableCondition
onFinished List
playDirection Direction,
resetOnPlay bool
target Animation
trigger Trigger,

Private Properties

Property Type Description

Public Methods

Method Description
Awake ( ) : void
OnActivate ( bool isActive ) : void
OnClick ( ) : void
OnDoubleClick ( ) : void
OnDragOut ( ) : void
OnDragOver ( ) : void
OnDrop ( GameObject go ) : void
OnEnable ( ) : void
OnFinished ( ) : void

Callback triggered when each tween executed by this script finishes.

OnHover ( bool isOver ) : void
OnPress ( bool isPressed ) : void
OnSelect ( bool isSelected ) : void
Play ( bool forward ) : void

Start playing the animation.

Play ( bool forward, bool onlyIfDifferent ) : void

Start playing the animation.

Start ( ) : void

Automatically find the necessary components.

Method Details

Awake() public method

public Awake ( ) : void
return void

OnActivate() public method

public OnActivate ( bool isActive ) : void
isActive bool
return void

OnClick() public method

public OnClick ( ) : void
return void

OnDoubleClick() public method

public OnDoubleClick ( ) : void
return void

OnDragOut() public method

public OnDragOut ( ) : void
return void

OnDragOver() public method

public OnDragOver ( ) : void
return void

OnDrop() public method

public OnDrop ( GameObject go ) : void
go GameObject
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnFinished() public method

Callback triggered when each tween executed by this script finishes.
public OnFinished ( ) : void
return void

OnHover() public method

public OnHover ( bool isOver ) : void
isOver bool
return void

OnPress() public method

public OnPress ( bool isPressed ) : void
isPressed bool
return void

OnSelect() public method

public OnSelect ( bool isSelected ) : void
isSelected bool
return void

Play() public method

Start playing the animation.
public Play ( bool forward ) : void
forward bool
return void

Play() public method

Start playing the animation.
public Play ( bool forward, bool onlyIfDifferent ) : void
forward bool
onlyIfDifferent bool
return void

Start() public method

Automatically find the necessary components.
public Start ( ) : void
return void

Property Details

animator public_oe property

Target animator system.
public Animator animator
return Animator

clearSelection public_oe property

Whether the selected object (this button) will be cleared when the animation gets activated.
public bool clearSelection
return bool

clipName public_oe property

Optional clip name, if the animation has more than one clip.
public string clipName
return string

disableWhenFinished public_oe property

What to do with the target when the animation finishes.
public DisableCondition disableWhenFinished
return DisableCondition

ifDisabledOnPlay public_oe property

What to do if the target game object is currently disabled.
public EnableCondition ifDisabledOnPlay
return EnableCondition

onFinished public_oe property

Event delegates called when the animation finishes.
public List onFinished
return List

playDirection public_oe property

Which direction to animate in.
public Direction, playDirection
return Direction,

resetOnPlay public_oe property

Whether the animation's position will be reset on play or will continue from where it left off.
public bool resetOnPlay
return bool

target public_oe property

Target animation to activate.
public Animation target
return Animation

trigger public_oe property

Which event will trigger the animation.
public Trigger, trigger
return Trigger,