Skip to content

cop_string_var

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

Class Name: COP_StringVar

Inherits: Resource

Description

cop_string_var class stores and shares the reference for a String 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
String _value

Methods

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

Property Descriptions

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

String 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 ( String 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