Sequine - Scripting API
Calcatz.Sequine.SetRotationCommand Class Reference

Sets transform's rotation. More...

Inheritance diagram for Calcatz.Sequine.SetRotationCommand:
Calcatz.Sequine.ModifyTransformCommand Calcatz.CookieCutter.Command< Vector3, Quaternion >

Public Member Functions

override void Execute (CommandExecutionFlow _flow)
 The process to execute upon visiting the main in-point (white in-point). More...
 
override OneOf< Vector3, Quaternion > GetOutput (CommandExecutionFlow _flow, int _pointIndex)
 
override void Editor_InitInPoints ()
 Called when a Command Node is initialized, specifically the in-points. Use this method to ensure inputIds as well. More...
 
override void Editor_InitOutPoints ()
 Called when a Command Node is initialized, specifically the out-points. Use this method to ensure nextIds as well. More...
 
override void Editor_OnDrawContents (Vector2 _absPosition)
 Called when a Command Node is drawn. More...
 
- Public Member Functions inherited from Calcatz.Sequine.ModifyTransformCommand
override bool Validate (CommandData _commandData)
 Validate() is called when opening the nodes editor (if in Edit Mode), or right before the command execution (if in Play Mode). The main purpose is to adapt or validate any data inside the Command, if its structure had been changed. More...
 

Public Attributes

bool useQuaternion
 
Vector3 euler
 
- Public Attributes inherited from Calcatz.Sequine.ModifyTransformCommand
bool localSpace
 
UnityEngine.Object transformTarget
 
TargetObject< Transform > transformRef
 

Static Public Attributes

const int IN_PORT_QUATERNION = 1
 
const int IN_PORT_EULER = 2
 
const int OUT_PORT_QUATERNION = 1
 
- Static Public Attributes inherited from Calcatz.Sequine.ModifyTransformCommand
const int IN_PORT_TARGET = 0
 

Additional Inherited Members

- Protected Member Functions inherited from Calcatz.Sequine.ModifyTransformCommand
Transform GetTransform (CommandExecutionFlow _flow)
 
- Properties inherited from Calcatz.Sequine.ModifyTransformCommand
override float nodeWidth [get]
 
virtual bool globalSpaceAvailable [get]
 

Detailed Description

Sets transform's rotation.

Member Function Documentation

◆ Editor_InitInPoints()

override void Calcatz.Sequine.SetRotationCommand.Editor_InitInPoints ( )
virtual

Called when a Command Node is initialized, specifically the in-points. Use this method to ensure inputIds as well.

Reimplemented from Calcatz.Sequine.ModifyTransformCommand.

◆ Editor_InitOutPoints()

override void Calcatz.Sequine.SetRotationCommand.Editor_InitOutPoints ( )
virtual

Called when a Command Node is initialized, specifically the out-points. Use this method to ensure nextIds as well.

Reimplemented from Calcatz.CookieCutter.Command< Vector3, Quaternion >.

◆ Editor_OnDrawContents()

override void Calcatz.Sequine.SetRotationCommand.Editor_OnDrawContents ( Vector2  _absPosition)
virtual

Called when a Command Node is drawn.

Parameters
_absPosition

Reimplemented from Calcatz.Sequine.ModifyTransformCommand.

◆ Execute()

override void Calcatz.Sequine.SetRotationCommand.Execute ( CommandExecutionFlow  _flow)
virtual

The process to execute upon visiting the main in-point (white in-point).

Parameters
_flow

Reimplemented from Calcatz.CookieCutter.Command< Vector3, Quaternion >.

◆ GetOutput()

override OneOf< Vector3, Quaternion > Calcatz.Sequine.SetRotationCommand.GetOutput ( CommandExecutionFlow  _flow,
int  _pointIndex 
)
virtual

Member Data Documentation

◆ euler

Vector3 Calcatz.Sequine.SetRotationCommand.euler

◆ IN_PORT_EULER

const int Calcatz.Sequine.SetRotationCommand.IN_PORT_EULER = 2
static

◆ IN_PORT_QUATERNION

const int Calcatz.Sequine.SetRotationCommand.IN_PORT_QUATERNION = 1
static

◆ OUT_PORT_QUATERNION

const int Calcatz.Sequine.SetRotationCommand.OUT_PORT_QUATERNION = 1
static

◆ useQuaternion

bool Calcatz.Sequine.SetRotationCommand.useQuaternion