Skip to content

cop_color_var

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

Class Name: COP_ColorVar

Inherits: Resource

Description

cop_color_var class stores and shares the reference for a Color type. The stored value can be changed during run time through scripts. It can NOT be set during editor mode.

Tutorial

Properties

Type Name Default Value
Color _value

Methods

Return Type Name
Color() get_value()
void set_value( Color value )

Property Descriptions

Color _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().

Note: This value can NOT have a pre-defined value when the application starts. It can only be set through script.


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.


void set_value ( Color value )

This method sets the stored _value.

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


Clone this wiki locally