Meta SDK2 Beta  2.7.0
Meta.GameObjectUserSettings Class Reference

This may be attached to any game object in order to maintain transform information of the game object after Unity is no longer playing. The transform information may then be recovered for a different session. More...

Inheritance diagram for Meta.GameObjectUserSettings:
Meta.MetaBehaviour Meta.BaseMetaBehaviour< IMetaContext >

Public Member Functions

void OnApplicationQuit ()
 

Static Public Member Functions

static string GetGameObjectPath (GameObject obj)
 Gets the path of a gameobject in the scene relative to the root level. More...
 

Public Attributes

bool LoadSettings = true
 Whether to load transform settings More...
 
bool SaveSettings = true
 Whether to save transform settings More...
 

Properties

string m_rotKey [get]
 The key used to save rotation data More...
 
string m_posKey [get]
 The key used to save position data More...
 
string m_scaleKey [get]
 The key used to save scale data More...
 
- Properties inherited from Meta.BaseMetaBehaviour< IMetaContext >
metaContext [get]
 Contains references to modules used to provide Meta functionality in the scene. More...
 

Detailed Description

This may be attached to any game object in order to maintain transform information of the game object after Unity is no longer playing. The transform information may then be recovered for a different session.

Member Function Documentation

◆ GetGameObjectPath()

static string Meta.GameObjectUserSettings.GetGameObjectPath ( GameObject  obj)
inlinestatic

Gets the path of a gameobject in the scene relative to the root level.

Parameters
obj
Returns

◆ OnApplicationQuit()

void Meta.GameObjectUserSettings.OnApplicationQuit ( )
inline

Member Data Documentation

◆ LoadSettings

bool Meta.GameObjectUserSettings.LoadSettings = true

Whether to load transform settings

◆ SaveSettings

bool Meta.GameObjectUserSettings.SaveSettings = true

Whether to save transform settings

Property Documentation

◆ m_posKey

string Meta.GameObjectUserSettings.m_posKey
get

The key used to save position data

◆ m_rotKey

string Meta.GameObjectUserSettings.m_rotKey
get

The key used to save rotation data

◆ m_scaleKey

string Meta.GameObjectUserSettings.m_scaleKey
get

The key used to save scale data