Sequine - Scripting API
Calcatz.Sequine.SetPositionCommand Class Reference

Sets transform's position. More...

Inheritance diagram for Calcatz.Sequine.SetPositionCommand:
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

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

Static Public Attributes

const int IN_PORT_POSITION = 1
 
const int OUT_PORT_POSITION = 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 position.

Member Function Documentation

◆ Editor_InitInPoints()

override void Calcatz.Sequine.SetPositionCommand.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.SetPositionCommand.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.SetPositionCommand.Editor_OnDrawContents ( Vector2  _absPosition)
virtual

Called when a Command Node is drawn.

Parameters
_absPosition

Reimplemented from Calcatz.Sequine.ModifyTransformCommand.

◆ Execute()

override void Calcatz.Sequine.SetPositionCommand.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.SetPositionCommand.GetOutput ( CommandExecutionFlow  _flow,
int  _pointIndex 
)
virtual

Member Data Documentation

◆ IN_PORT_POSITION

const int Calcatz.Sequine.SetPositionCommand.IN_PORT_POSITION = 1
static

◆ OUT_PORT_POSITION

const int Calcatz.Sequine.SetPositionCommand.OUT_PORT_POSITION = 1
static

◆ position

Vector3 Calcatz.Sequine.SetPositionCommand.position