Sequine - Scripting API
Calcatz.CookieCutter.CommandGUI Class Reference

Shortcuts for drawing custom node through Command (without using Command Node). Can only be used if the Command has no Command Node. Otherwise, an error will be occured. More...

Classes

class  internal_Actions
 

Static Public Member Functions

static bool IsSelected ()
 
static void AddMainInPoint ()
 
static void AddMainOutPoint ()
 
static void AddPropertyInPoint< T > ()
 
static void AddPropertyInPoint (System.Type _type)
 
static void AddPropertyOutPoint< T > ()
 
static void AddPropertyOutPoint (System.Type _type)
 
static void DrawInPoint (int _inputPointIndex)
 
static void DrawOutPoint (int _outputPointIndex)
 
static void AddRectHeight (float _height)
 
static Rect GetRect (int _lineCount=1, int _indent=0)
 
static void GetSingleLineLabeledRect (out Rect labelRect, out Rect valueRect)
 
static void PropertySpace ()
 
static void DrawFoldoutGroup (string _label, ref bool _targetBool, Action _onDrawContent)
 
static void DrawFoldoutGroup (string _label, string _tooltip, ref bool _targetBool, Action _onDrawContent)
 
static void BeginFoldoutGroup (string _label, ref bool _targetBool)
 
static void BeginFoldoutGroup (string _label, string _tooltip, ref bool _targetBool)
 
static void EndFoldoutGroup ()
 
static void DrawLabel (Rect _rect, string _label, bool _alignRight=false)
 
static void DrawLabel (Rect _rect, string _label, string _tooltip, bool _alignRight=false)
 
static void DrawLabel (string _label, bool _alignRight=false)
 
static void DrawLabel (string _label, string _tooltip, bool _alignRight=false)
 
static void DrawTextField (string _label, ref string _targetText)
 
static void DrawTextField (string _label, string _tooltip, ref string _targetText)
 
static void DrawTextAreaField (string _label, ref string _targetText, int _lineCount=2, bool _wordWrap=true)
 
static void DrawTextAreaField (string _label, string _tooltip, ref string _targetText, int _lineCount=2, bool _wordWrap=true)
 
static void DrawRoundedFloatField (string _label, ref float _targetFloat, float _min=float.MinValue, float _max=float.MaxValue)
 
static void DrawRoundedFloatField (string _label, string _tooltip, ref float _targetFloat, float _min=float.MinValue, float _max=float.MaxValue)
 
static void DrawFloatField (string _label, ref float _targetFloat, float _min=float.MinValue, float _max=float.MaxValue)
 
static void DrawFloatField (string _label, string _tooltip, ref float _targetFloat, float _min=float.MinValue, float _max=float.MaxValue)
 
static void DrawFloatSliderField (string _label, ref float _targetFloat, float _min, float _max)
 Will be shown as ordinary Float Field if node width is not wide enough. Use nodeWidth 240 at minimum. More...
 
static void DrawFloatSliderField (string _label, string _tooltip, ref float _targetFloat, float _min, float _max)
 Will be shown as ordinary Float Field if node width is not wide enough. Use nodeWidth 240 at minimum. More...
 
static void DrawIntField (string _label, ref int _targetInt, int _min=int.MinValue, int _max=int.MaxValue)
 
static void DrawIntField (string _label, string _tooltip, ref int _targetInt, int _min=int.MinValue, int _max=int.MaxValue)
 
static void IntSliderField (string _label, ref int _targetInt, int _min, int _max)
 
static void IntSliderField (string _label, string _tooltip, ref int _targetInt, int _min, int _max)
 
static void DrawToggleField (string _label, ref bool _targetBool)
 
static void DrawToggleField (string _label, string _tooltip, ref bool _targetBool)
 
static void DrawToggleLeftField (string _label, ref bool _targetBool)
 
static void DrawToggleLeftField (string _label, string _tooltip, ref bool _targetBool)
 
static void DrawObjectField< T > (string _label, T _currentObject, Action< T > _onObjectChanged, bool _allowSceneObjects=false)
 
static void DrawObjectField< T > (string _label, string _tooltip, T _currentObject, Action< T > _onObjectChanged, bool _allowSceneObjects=false)
 
static void DrawBinderField< T > (string _label, T _currentObject, Action< T > _onObjectChanged, Func< UnityEngine.Object, UnityEngine.Object > _customValidateDraggedObject=null)
 
static void DrawBinderField< T > (string _label, string _tooltip, T _currentObject, Action< T > _onObjectChanged, Func< UnityEngine.Object, UnityEngine.Object > _customValidateDraggedObject=null)
 
static void DrawColorField (string _label, ref Color _targetColor)
 
static void DrawColorField (string _label, string _tooltip, ref Color _targetColor)
 
static void DrawCurveField (string _label, AnimationCurve _currentCurve, Action< AnimationCurve > _onChangeCurve)
 
static void DrawCurveField (string _label, string _tooltip, AnimationCurve _currentCurve, Action< AnimationCurve > _onChangeCurve)
 
static void DrawEnumField< T > (string _label, ref T _targetEnum)
 
static void DrawEnumField< T > (string _label, string _tooltip, ref T _targetEnum)
 
static void DrawVector3Field (string _label, ref Vector3 _targetVector)
 
static void DrawVector3Field (string _label, string _tooltip, ref Vector3 _targetVector)
 
static void DrawVector3IntField (string _label, ref Vector3Int _targetVector)
 
static void DrawVector3IntField (string _label, string _tooltip, ref Vector3Int _targetVector)
 
static void DrawVector2Field (string _label, ref Vector2 _targetVector)
 
static void DrawVector2Field (string _label, string _tooltip, ref Vector2 _targetVector)
 
static void DrawVector2IntField (string _label, ref Vector2Int _targetVector)
 
static void DrawVector2IntField (string _label, string _tooltip, ref Vector2Int _targetVector)
 
static void DrawVector4Field (string _label, ref Vector4 _targetVector)
 
static void DrawVector4Field (string _label, string _tooltip, ref Vector4 _targetVector)
 
static void DrawRectField (string _label, ref Rect _targetRect)
 
static void DrawRectField (string _label, string _tooltip, ref Rect _targetRect)
 
static void DrawRectIntField (string _label, ref RectInt _targetRect)
 
static void DrawRectIntField (string _label, string _tooltip, ref RectInt _targetRect)
 
static void DrawPopupField (string _label, int _currentIndex, string[] _options, Action< int > _onValueChanged)
 
static void DrawPopupField (string _label, string _tooltip, int _currentIndex, string[] _options, Action< int > _onValueChanged)
 

Properties

static UnityEngine.Object currentTargetObject [get]
 

Detailed Description

Shortcuts for drawing custom node through Command (without using Command Node). Can only be used if the Command has no Command Node. Otherwise, an error will be occured.

Member Function Documentation

◆ AddMainInPoint()

static void Calcatz.CookieCutter.CommandGUI.AddMainInPoint ( )
static

◆ AddMainOutPoint()

static void Calcatz.CookieCutter.CommandGUI.AddMainOutPoint ( )
static

◆ AddPropertyInPoint()

static void Calcatz.CookieCutter.CommandGUI.AddPropertyInPoint ( System.Type  _type)
static

◆ AddPropertyInPoint< T >()

◆ AddPropertyOutPoint()

static void Calcatz.CookieCutter.CommandGUI.AddPropertyOutPoint ( System.Type  _type)
static

◆ AddPropertyOutPoint< T >()

◆ AddRectHeight()

static void Calcatz.CookieCutter.CommandGUI.AddRectHeight ( float  _height)
static

◆ BeginFoldoutGroup() [1/2]

static void Calcatz.CookieCutter.CommandGUI.BeginFoldoutGroup ( string  _label,
ref bool  _targetBool 
)
static

◆ BeginFoldoutGroup() [2/2]

static void Calcatz.CookieCutter.CommandGUI.BeginFoldoutGroup ( string  _label,
string  _tooltip,
ref bool  _targetBool 
)
static

◆ DrawBinderField< T >() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawBinderField< T > ( string  _label,
string  _tooltip,
_currentObject,
Action< T >  _onObjectChanged,
Func< UnityEngine.Object, UnityEngine.Object >  _customValidateDraggedObject = null 
)
static

◆ DrawBinderField< T >() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawBinderField< T > ( string  _label,
_currentObject,
Action< T >  _onObjectChanged,
Func< UnityEngine.Object, UnityEngine.Object >  _customValidateDraggedObject = null 
)
static

◆ DrawColorField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawColorField ( string  _label,
ref Color  _targetColor 
)
static

◆ DrawColorField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawColorField ( string  _label,
string  _tooltip,
ref Color  _targetColor 
)
static

◆ DrawCurveField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawCurveField ( string  _label,
AnimationCurve  _currentCurve,
Action< AnimationCurve >  _onChangeCurve 
)
static

◆ DrawCurveField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawCurveField ( string  _label,
string  _tooltip,
AnimationCurve  _currentCurve,
Action< AnimationCurve >  _onChangeCurve 
)
static

◆ DrawEnumField< T >() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawEnumField< T > ( string  _label,
ref T  _targetEnum 
)
static

◆ DrawEnumField< T >() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawEnumField< T > ( string  _label,
string  _tooltip,
ref T  _targetEnum 
)
static

◆ DrawFloatField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFloatField ( string  _label,
ref float  _targetFloat,
float  _min = float.MinValue,
float  _max = float.MaxValue 
)
static

◆ DrawFloatField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFloatField ( string  _label,
string  _tooltip,
ref float  _targetFloat,
float  _min = float.MinValue,
float  _max = float.MaxValue 
)
static

◆ DrawFloatSliderField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFloatSliderField ( string  _label,
ref float  _targetFloat,
float  _min,
float  _max 
)
static

Will be shown as ordinary Float Field if node width is not wide enough. Use nodeWidth 240 at minimum.

Parameters
_label
_targetFloat
_min
_max

◆ DrawFloatSliderField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFloatSliderField ( string  _label,
string  _tooltip,
ref float  _targetFloat,
float  _min,
float  _max 
)
static

Will be shown as ordinary Float Field if node width is not wide enough. Use nodeWidth 240 at minimum.

Parameters
_label
_tooltip
_targetFloat
_min
_max

◆ DrawFoldoutGroup() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFoldoutGroup ( string  _label,
ref bool  _targetBool,
Action  _onDrawContent 
)
static

◆ DrawFoldoutGroup() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawFoldoutGroup ( string  _label,
string  _tooltip,
ref bool  _targetBool,
Action  _onDrawContent 
)
static

◆ DrawInPoint()

static void Calcatz.CookieCutter.CommandGUI.DrawInPoint ( int  _inputPointIndex)
static

◆ DrawIntField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawIntField ( string  _label,
ref int  _targetInt,
int  _min = int.MinValue,
int  _max = int.MaxValue 
)
static

◆ DrawIntField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawIntField ( string  _label,
string  _tooltip,
ref int  _targetInt,
int  _min = int.MinValue,
int  _max = int.MaxValue 
)
static

◆ DrawLabel() [1/4]

static void Calcatz.CookieCutter.CommandGUI.DrawLabel ( Rect  _rect,
string  _label,
bool  _alignRight = false 
)
static

◆ DrawLabel() [2/4]

static void Calcatz.CookieCutter.CommandGUI.DrawLabel ( Rect  _rect,
string  _label,
string  _tooltip,
bool  _alignRight = false 
)
static

◆ DrawLabel() [3/4]

static void Calcatz.CookieCutter.CommandGUI.DrawLabel ( string  _label,
bool  _alignRight = false 
)
static

◆ DrawLabel() [4/4]

static void Calcatz.CookieCutter.CommandGUI.DrawLabel ( string  _label,
string  _tooltip,
bool  _alignRight = false 
)
static

◆ DrawObjectField< T >() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawObjectField< T > ( string  _label,
string  _tooltip,
_currentObject,
Action< T >  _onObjectChanged,
bool  _allowSceneObjects = false 
)
static

◆ DrawObjectField< T >() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawObjectField< T > ( string  _label,
_currentObject,
Action< T >  _onObjectChanged,
bool  _allowSceneObjects = false 
)
static

◆ DrawOutPoint()

static void Calcatz.CookieCutter.CommandGUI.DrawOutPoint ( int  _outputPointIndex)
static

◆ DrawPopupField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawPopupField ( string  _label,
int  _currentIndex,
string[]  _options,
Action< int >  _onValueChanged 
)
static

◆ DrawPopupField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawPopupField ( string  _label,
string  _tooltip,
int  _currentIndex,
string[]  _options,
Action< int >  _onValueChanged 
)
static

◆ DrawRectField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRectField ( string  _label,
ref Rect  _targetRect 
)
static

◆ DrawRectField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRectField ( string  _label,
string  _tooltip,
ref Rect  _targetRect 
)
static

◆ DrawRectIntField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRectIntField ( string  _label,
ref RectInt  _targetRect 
)
static

◆ DrawRectIntField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRectIntField ( string  _label,
string  _tooltip,
ref RectInt  _targetRect 
)
static

◆ DrawRoundedFloatField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRoundedFloatField ( string  _label,
ref float  _targetFloat,
float  _min = float.MinValue,
float  _max = float.MaxValue 
)
static

◆ DrawRoundedFloatField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawRoundedFloatField ( string  _label,
string  _tooltip,
ref float  _targetFloat,
float  _min = float.MinValue,
float  _max = float.MaxValue 
)
static

◆ DrawTextAreaField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawTextAreaField ( string  _label,
ref string  _targetText,
int  _lineCount = 2,
bool  _wordWrap = true 
)
static

◆ DrawTextAreaField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawTextAreaField ( string  _label,
string  _tooltip,
ref string  _targetText,
int  _lineCount = 2,
bool  _wordWrap = true 
)
static

◆ DrawTextField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawTextField ( string  _label,
ref string  _targetText 
)
static

◆ DrawTextField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawTextField ( string  _label,
string  _tooltip,
ref string  _targetText 
)
static

◆ DrawToggleField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawToggleField ( string  _label,
ref bool  _targetBool 
)
static

◆ DrawToggleField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawToggleField ( string  _label,
string  _tooltip,
ref bool  _targetBool 
)
static

◆ DrawToggleLeftField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawToggleLeftField ( string  _label,
ref bool  _targetBool 
)
static

◆ DrawToggleLeftField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawToggleLeftField ( string  _label,
string  _tooltip,
ref bool  _targetBool 
)
static

◆ DrawVector2Field() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector2Field ( string  _label,
ref Vector2  _targetVector 
)
static

◆ DrawVector2Field() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector2Field ( string  _label,
string  _tooltip,
ref Vector2  _targetVector 
)
static

◆ DrawVector2IntField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector2IntField ( string  _label,
ref Vector2Int  _targetVector 
)
static

◆ DrawVector2IntField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector2IntField ( string  _label,
string  _tooltip,
ref Vector2Int  _targetVector 
)
static

◆ DrawVector3Field() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector3Field ( string  _label,
ref Vector3  _targetVector 
)
static

◆ DrawVector3Field() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector3Field ( string  _label,
string  _tooltip,
ref Vector3  _targetVector 
)
static

◆ DrawVector3IntField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector3IntField ( string  _label,
ref Vector3Int  _targetVector 
)
static

◆ DrawVector3IntField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector3IntField ( string  _label,
string  _tooltip,
ref Vector3Int  _targetVector 
)
static

◆ DrawVector4Field() [1/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector4Field ( string  _label,
ref Vector4  _targetVector 
)
static

◆ DrawVector4Field() [2/2]

static void Calcatz.CookieCutter.CommandGUI.DrawVector4Field ( string  _label,
string  _tooltip,
ref Vector4  _targetVector 
)
static

◆ EndFoldoutGroup()

static void Calcatz.CookieCutter.CommandGUI.EndFoldoutGroup ( )
static

◆ GetRect()

static Rect Calcatz.CookieCutter.CommandGUI.GetRect ( int  _lineCount = 1,
int  _indent = 0 
)
static

◆ GetSingleLineLabeledRect()

static void Calcatz.CookieCutter.CommandGUI.GetSingleLineLabeledRect ( out Rect  labelRect,
out Rect  valueRect 
)
static

◆ IntSliderField() [1/2]

static void Calcatz.CookieCutter.CommandGUI.IntSliderField ( string  _label,
ref int  _targetInt,
int  _min,
int  _max 
)
static

◆ IntSliderField() [2/2]

static void Calcatz.CookieCutter.CommandGUI.IntSliderField ( string  _label,
string  _tooltip,
ref int  _targetInt,
int  _min,
int  _max 
)
static

◆ IsSelected()

static bool Calcatz.CookieCutter.CommandGUI.IsSelected ( )
static

◆ PropertySpace()

static void Calcatz.CookieCutter.CommandGUI.PropertySpace ( )
static

Property Documentation

◆ currentTargetObject

UnityEngine.Object Calcatz.CookieCutter.CommandGUI.currentTargetObject
staticget