Difference between revisions of "CutsceneCmdScale"

From Headbone Creative
Jump to: navigation, search
(Initial page)
 
(Adding API information and categories)
 
Line 1: Line 1:
 
This will scale the target object over a given amount of time.
 
This will scale the target object over a given amount of time.
  
 +
== Public Variables ==
 +
=== target : Transform ===
 +
This is the object that will have its scale adjusted. It must be assigned in the editor.
 +
=== targetScale : Vector3 ===
 +
This is what the [http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html localScale] of the object will be when the cutscene is finished.
 +
=== resetScale : Vector3 ===
 +
This is what the [http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html localScale] of the object will be when the cutscene starts or is reset, if resetToStartingScale is false.
 +
=== resetToStartingScale : bool ===
 +
If true, the resetScale above will be set to the [http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html localScale] of the target on [http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.Start.html MonoBehaviour.Start].
 +
=== scaleTime : float ===
 +
This is the time in seconds to spend scaling the object.
 +
 +
[[Category:API]]
 
[[Category:Cutscene Framework]]
 
[[Category:Cutscene Framework]]
 +
[[Category:Premium Scripts]]

Latest revision as of 16:04, 15 April 2013

This will scale the target object over a given amount of time.

Contents

[edit] Public Variables

[edit] target : Transform

This is the object that will have its scale adjusted. It must be assigned in the editor.

[edit] targetScale : Vector3

This is what the localScale of the object will be when the cutscene is finished.

[edit] resetScale : Vector3

This is what the localScale of the object will be when the cutscene starts or is reset, if resetToStartingScale is false.

[edit] resetToStartingScale : bool

If true, the resetScale above will be set to the localScale of the target on MonoBehaviour.Start.

[edit] scaleTime : float

This is the time in seconds to spend scaling the object.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox