ComponentRef
Define Constant
DefineConstant
Defines a constant that can be used in expressions. A constant value is a value that cannot be changed.
Properties
Name
The name of the constant.
Type
The data type of the constant.
- Float
- Integer
- String
Value
The value of the constant when type is set to Float. Examples of how to use a constant in an expression: "CurrentModel.Velocity.X=MyConst.Value;" or "Temp1=MyConst;".
IntValue
The value of the constant when type is set to Integer.
StringValue
The value of the constant when type is set to String.
ZGameEditor
Documentation
- Contents
- Overview
- Tutorial 1
- Tutorial 2
- Tutorial 3
- Sample projects
- Component reference
- Writing expressions
Community