-
Notifications
You must be signed in to change notification settings - Fork 1
var_template
Inherits: Resource
Resource template script for creating new var variables.
var_template is a Resource template script. You can use this template script to create new scripts/objects that will act as a var. These scripts basically stores and shares the value through reference. The stored value can also be changed during run time. The value can NOT be set during the editor mode. Example of var scripts are cop_bool_var, cop_float_var and cop_int_var.
Note: Make sure to give a unique class name for the new script so that you can create it in the editor.
Type | Name | Default Value |
---|---|---|
untype | value |
Return Type | Name |
---|---|
untype | get_value() |
void | set_value( untype value ) |
The stored value that will be shared through the method get_value(). This value can also be changed during runtime through the method set_value(). The property MUST be given a type. If NOT then this script will throw errors.
Note: This value can NOT have a pre-defined value when the application starts. It can only be set through script.
This method returns the stored _value. Do NOT call the _value directly as that may give unwanted results. The return type is untype. So make sure to give the return type same as the _value's type. If NOT done so then this script will give an error whenever this method is called.
Note: To get the stored value you MUST call this method. Do NOT call the _value directly as that may give unwanted results.
This method sets the _value. Do NOT call the _value directly as that may give unwanted results. The parameter value is untype. So make sure the type of this parameter is same as the _value's type. If NOT then this method will throw errors whenever it is called.
- Tutorial Bar
- Tutorial Debug
- Tutorial Instantiate Object
- Tutorial Pool
- Tutorial Timer
- Tutorial Update Manager
- Tutorial Variable Creator
- Bars
- Debugs
- Maths
- Pools
- Resources
- Fixed Vars
- Managers
- Observers
- Vars
- Script Templates
- Timers
- Updates