Difference between revisions of "DOMCurveKeyframeExtended"
From Virtual World Web Wiki
(Documentation for the DOMCurveKeyframeExtended class) |
(Documentation for the DOMCurveKeyframeExtended class) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * '''Inherits class: [[DOMObjectExtended]]''' | + | Represents a [[DOMCurveKeyframe]] in JavaScript |
+ | |||
+ | *'''Inherits class: [[DOMObjectExtended]]''' | ||
* This is a JavaScript visible object | * This is a JavaScript visible object | ||
===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCurveKeyframeExtended Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ===Remarks <nowiki>[</nowiki>[{{fullurl:DOMCurveKeyframeExtended Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
− | {{:DOMCurveKeyframeExtended Remarks}} | + | {{#ifexist:DOMCurveKeyframeExtended Remarks|{{:DOMCurveKeyframeExtended Remarks}}|}} |
===Properties=== | ===Properties=== | ||
− | :{{CSharp| | + | :{{CSharp|float Time {get; set;} // Via attribution on DOMCurveKeyframe }} |
+ | :: | ||
+ | ::The time offset of this keyframe from the beginning of the [[DOMCurve]] animation, in seconds. | ||
===Events=== | ===Events=== | ||
− | :{{CSharp|OnPlayerCrossed( | + | :{{CSharp|OnPlayerCrossed(DOMCurvePlayerExtended player)}} |
+ | ::Parameters: | ||
+ | :::{{CSharp|player}} : The player which crossed the keyframe | ||
+ | :: | ||
+ | ::Fires when this keyframe is crossed by a player | ||
===Methods=== | ===Methods=== | ||
:{{CSharp|DOMObjectExtended CreateBoolValue(string name, bool value)}} | :{{CSharp|DOMObjectExtended CreateBoolValue(string name, bool value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and bool value | ||
:{{CSharp|DOMObjectExtended CreateColorValue(string name, Color32 value)}} | :{{CSharp|DOMObjectExtended CreateColorValue(string name, Color32 value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and Color32 value | ||
− | :{{CSharp|DOMObjectExtended CreateFloatValue(string name, | + | :{{CSharp|DOMObjectExtended CreateFloatValue(string name, float value)}} |
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and float value | ||
:{{CSharp|DOMObjectExtended CreateIntValue(string name, int value)}} | :{{CSharp|DOMObjectExtended CreateIntValue(string name, int value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and int value | ||
:{{CSharp|DOMObjectExtended CreatePointValue(string name, JSVector3 value)}} | :{{CSharp|DOMObjectExtended CreatePointValue(string name, JSVector3 value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and Point3D value | ||
:{{CSharp|DOMObjectExtended CreateResourceValue(string name, ResourceValue value)}} | :{{CSharp|DOMObjectExtended CreateResourceValue(string name, ResourceValue value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and ResourceValue value | ||
:{{CSharp|DOMObjectExtended CreateStringValue(string name, string value)}} | :{{CSharp|DOMObjectExtended CreateStringValue(string name, string value)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, and string value | ||
:{{CSharp|DOMObjectExtended CreateValue(string name)}} | :{{CSharp|DOMObjectExtended CreateValue(string name)}} | ||
+ | :: | ||
+ | ::Creates a new DOMCurveValue node with the specified name, you must set a property on it with an appropriate value | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Latest revision as of 20:14, 8 January 2018
Represents a DOMCurveKeyframe in JavaScript
- Inherits class: DOMObjectExtended
- This is a JavaScript visible object
Remarks [edit]
Properties
- float Time {get; set;} // Via attribution on DOMCurveKeyframe
- The time offset of this keyframe from the beginning of the DOMCurve animation, in seconds.
Events
- OnPlayerCrossed(DOMCurvePlayerExtended player)
- Parameters:
- player : The player which crossed the keyframe
- Fires when this keyframe is crossed by a player
- Parameters:
Methods
- DOMObjectExtended CreateBoolValue(string name, bool value)
- Creates a new DOMCurveValue node with the specified name, and bool value
- DOMObjectExtended CreateColorValue(string name, Color32 value)
- Creates a new DOMCurveValue node with the specified name, and Color32 value
- DOMObjectExtended CreateFloatValue(string name, float value)
- Creates a new DOMCurveValue node with the specified name, and float value
- DOMObjectExtended CreateIntValue(string name, int value)
- Creates a new DOMCurveValue node with the specified name, and int value
- DOMObjectExtended CreatePointValue(string name, JSVector3 value)
- Creates a new DOMCurveValue node with the specified name, and Point3D value
- DOMObjectExtended CreateResourceValue(string name, ResourceValue value)
- Creates a new DOMCurveValue node with the specified name, and ResourceValue value
- DOMObjectExtended CreateStringValue(string name, string value)
- Creates a new DOMCurveValue node with the specified name, and string value
- DOMObjectExtended CreateValue(string name)
- Creates a new DOMCurveValue node with the specified name, you must set a property on it with an appropriate value