Adventure Creator  1.77.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.PresetValue Class Reference

Public Member Functions

 PresetValue (GVar _gVar)
 The default Constructor. More...
 

Public Attributes

int id
 
int val
 
float floatVal
 
string textVal
 
Vector3 vector3Val
 
GameObject gameObjectVal
 
Object objectVal
 

Detailed Description

A data container for a single variable's preset value.

Constructor & Destructor Documentation

◆ PresetValue()

AC.PresetValue.PresetValue ( GVar  _gVar)

The default Constructor.

Parameters
_gVarThe variable that this is a preset for

Member Data Documentation

◆ floatVal

float AC.PresetValue.floatVal

Its value, if a float.

◆ gameObjectVal

GameObject AC.PresetValue.gameObjectVal

Its value, if a GameObject

◆ id

int AC.PresetValue.id

The associated variable's ID number

◆ objectVal

Object AC.PresetValue.objectVal

Its value if a Unity Object

◆ textVal

string AC.PresetValue.textVal

Its value, if a string

◆ val

int AC.PresetValue.val

Its value, if an integer, popup or boolean. If a boolean, 0 = False, and 1 = True.

◆ vector3Val

Vector3 AC.PresetValue.vector3Val

Its value, if a Vector3