Skip to content

cop_fixed_int_var

Kamran Wali edited this page Nov 29, 2024 · 3 revisions

Class Name: COP_FixedIntVar

Inherits: Resource

Description

cop_fixed_int_var class stores and shares the reference to a int. The stored value can NOT and should NOT be changed during run time. It can ONLY be changed during editor mode.

The purpose of _Fixed post-fix scripts are that they will only share values and NOT update them during run time.

Tutorial

Properties

Type Name Default Value
int _value

Methods

Return Type Name
int get_value()

Property Descriptions

int _value

The stored value that will be shared through the method get_value().

Note: Do NOT change this value from script. The purpose of this script is to ONLY share the value that has been set during the editor mode. ONLY get this value through the method get_value() otherwise it may give unwanted results.


Method Descriptions

int get_value ()

This method returns the stored _value.

Note: To get the stored value you MUST call this method. Do NOT call the _value directly as that may give unwanted results.


Clone this wiki locally