Class MARSEnvironmentSettings
Holds environment scene settings
Inherited Members
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Simulation
Assembly: Unity.MARS.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[RequireComponent(typeof(PlaneExtractionSettings))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@2.0/manual/ReferenceGuideSimulationEnvironmentComponents.html#mars-environment-settings-marsenvironmentsettings")]
[MovedFrom("Unity.MARS")]
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 |
---|---|
bool | True if settings was found. |
SetDefaultEnvironmentCamera(SceneView, bool)
Sets the default camera settings based on the current scene view camera
Declaration
public void SetDefaultEnvironmentCamera(SceneView sceneView, bool isSimView)
Parameters
Type | Name | Description |
---|---|---|
SceneView | sceneView | Scene view that we are getting the camera from |
bool | isSimView | Is the scene view a simulation view |
SetSimulationStartingPose(Pose, bool)
Sets the simulated device starting pose based on the current scene view camera
Declaration
public void SetSimulationStartingPose(Pose cameraPose, bool isSimView)
Parameters
Type | Name | Description |
---|---|---|
Pose | cameraPose | Camera pose we using |
bool | isSimView | Is this camera from a simulation view |
UpdatePrefabInfo()
Declaration
public void UpdatePrefabInfo()