Sequine - Scripting API
Calcatz.Sequine.ModifyTransformCommand Class Reference

Base class for commands that modifies a Transform's value. More...

Inheritance diagram for Calcatz.Sequine.ModifyTransformCommand:
Calcatz.CookieCutter.Command< Vector3, Quaternion > Calcatz.Sequine.SetPositionCommand Calcatz.Sequine.SetRotationCommand Calcatz.Sequine.SetScaleCommand Calcatz.Sequine.TransformTweenCommand Calcatz.Sequine.TweenPositionCommand Calcatz.Sequine.TweenRotationCommand Calcatz.Sequine.TweenScaleCommand

Public Member Functions

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...
 
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_OnDrawContents (Vector2 _absPosition)
 Called when a Command Node is drawn. More...
 

Public Attributes

bool localSpace
 
UnityEngine.Object transformTarget
 
TargetObject< Transform > transformRef
 

Static Public Attributes

const int IN_PORT_TARGET = 0
 

Protected Member Functions

Transform GetTransform (CommandExecutionFlow _flow)
 

Properties

override float nodeWidth [get]
 
virtual bool globalSpaceAvailable [get]
 

Detailed Description

Base class for commands that modifies a Transform's value.

Member Function Documentation

◆ Editor_InitInPoints()

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

◆ Editor_OnDrawContents()

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

◆ GetTransform()

Transform Calcatz.Sequine.ModifyTransformCommand.GetTransform ( CommandExecutionFlow  _flow)
protected

◆ Validate()

override bool Calcatz.Sequine.ModifyTransformCommand.Validate ( CommandData  _commandData)
virtual

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.

Returns
Returns true if the command is modified due to validation.

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

Member Data Documentation

◆ IN_PORT_TARGET

const int Calcatz.Sequine.ModifyTransformCommand.IN_PORT_TARGET = 0
static

◆ localSpace

bool Calcatz.Sequine.ModifyTransformCommand.localSpace

◆ transformRef

TargetObject<Transform> Calcatz.Sequine.ModifyTransformCommand.transformRef

◆ transformTarget

UnityEngine.Object Calcatz.Sequine.ModifyTransformCommand.transformTarget

Property Documentation

◆ globalSpaceAvailable

virtual bool Calcatz.Sequine.ModifyTransformCommand.globalSpaceAvailable
getprotected

◆ nodeWidth

override float Calcatz.Sequine.ModifyTransformCommand.nodeWidth
get