Skip to content

cop_fixed_color_var

Kamran Wali edited this page Jun 29, 2025 · 1 revision

Class Name: COP_FixedColorVar

Inherits: Resource

Description

cop_fixed_color_var class stoes and shares the reference to a Color. 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
Color _value

Methods

Return Type Name
Color get_value()

Property Descriptions

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

Color 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