Class ScenePlacementModule.PlacementOverrideData
Overrides to the ScenePlacementModule based on the PlacementOverride of the dragged object.
Namespace: UnityEditor.MARS.Authoring
Syntax
public class PlacementOverrideData : object
Properties
axisOverride
Object's axis orient override
Declaration
public AxisEnum axisOverride { get; }
Property Value
| Type | Description |
|---|---|
| AxisEnum |
axisOverrideVector
Vector of the object's axis override
Declaration
public Vector3 axisOverrideVector { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
orientToSurfaceOverride
Object's orient to surface override
Declaration
public bool orientToSurfaceOverride { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
snapToPivotOverride
Object's pivot override behavior
Declaration
public bool snapToPivotOverride { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
useAxisOverride
Use the object's orient to surface override
Declaration
public bool useAxisOverride { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
useOrientToSurfaceOverride
Use the object's orient to surface override
Declaration
public bool useOrientToSurfaceOverride { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
useSnapToPivotOverride
Use the object's pivot override
Declaration
public bool useSnapToPivotOverride { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
ResetData()
Reset the PlacementOverrideData's object to default value
Declaration
public void ResetData()
SetOverrideData(PlacementOverride)
Set the override data to the object's PlacementOverride
Declaration
public void SetOverrideData(PlacementOverride overrides)
Parameters
| Type | Name | Description |
|---|---|---|
| PlacementOverride | overrides |