Skip to content

cop_fixed_bool_var

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

Class Name: COP_FixedBoolVar

Inherits: Resource

Description

cop_fixed_bool_var class stores and shares the reference to a bool. 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
bool _value

Methods

Return Type Name
bool get_value()

Property Descriptions

bool _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

bool 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