-
Notifications
You must be signed in to change notification settings - Fork 1
fixed_var_template
Inherits: Resource
Resource template script for creating new fixed var type variables.
fixed_var_template is a Resource template script. You can use this template script to create new scripts/objects that will act as a fixed var. These scripts basically stores values and will share the stored value through reference. Example of fixed var scripts are cop_fixed_bool_var, cop_fixed_float_var and cop_fixed_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 |
---|---|---|
int | _value |
Return Type | Name |
---|---|
untype | get_value() |
int _value
This is the property that will store a value. You can change type of the value to any type you want.
Note: The reason for making the default type to int is because during writing this script script templates requires that @export property to have a type otherwise the property will NOT be added when creating a script template.
This method returns the stored _value. 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.
- 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