ComponentRef
Define Variable
DefineVariable
Defines a variable that can be used in expressions.
Properties
Name
The name of the variable. A variable can be assigned from an expression in the following syntax: "MyVar=3.5;".
Value
The value of the variable when type is float. This value is not saved in zgeproj-files and is zero by default.
IntValue
The value of the variable when type is integer. This value is not saved in zgeproj-files and is zero by default.
StringValue
The value of the variable when type is string. This value is not saved in zgeproj-files and is a blank string by default.
Type
The data type of the variable.
- Float
- Integer
- String
ZGameEditor
Documentation
- Contents
- Overview
- Tutorial 1
- Tutorial 2
- Tutorial 3
- Sample projects
- Component reference
- Scripting reference
Community