Class MARSEnvironmentSettings
Holds environment scene settings
Namespace: Unity.MARS
Syntax
public class MARSEnvironmentSettings : MonoBehaviour
Properties
EnvironmentInfo
Declaration
public MARSEnvironmentInfo EnvironmentInfo { get; }
Property Value
| Type | Description |
|---|---|
| MARSEnvironmentInfo |
Methods
GetOrCreateSettings(GameObject, out MARSEnvironmentSettings)
Get the MARSEnvironmentSettings from the GameObject and create settings if none was found.
Declaration
public static bool GetOrCreateSettings(GameObject gameObject, out MARSEnvironmentSettings environmentSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | Root game object we are checking for settings |
| MARSEnvironmentSettings | environmentSettings | Environment Settings that is associated with the game object |
Returns
| Type | Description |
|---|---|
| Boolean | True if settings was found. |
UpdatePrefabInfo()
Declaration
public void UpdatePrefabInfo()