Class PlacementOverride
Overrides for the drag and drop behavior from the ScenePlacementModule
when placing the object in a scene.
Namespace: Unity.MARS.Authoring
Syntax
public class PlacementOverride : MonoBehaviour
Properties
axisOverride
Override to the up axis of the object when placing ScenePlacementModule
Declaration
public AxisEnum axisOverride { get; }
Property Value
Type | Description |
---|---|
AxisEnum |
axisOverrideVector
If there is an axis override, then this will contain that value, otherwise it will be null
Declaration
public Vector3 axisOverrideVector { get; }
Property Value
Type | Description |
---|---|
Vector3 |
orientToSurfaceOverride
If not set to None, objects placed on this target will always use the specified setting for orienting to the surface
Declaration
public bool orientToSurfaceOverride { get; }
Property Value
Type | Description |
---|---|
Boolean |
snapToPivotOverride
If not set to None, objects placed on this target will always use the specified setting for snapping to the pivot
Declaration
public bool snapToPivotOverride { get; }
Property Value
Type | Description |
---|---|
Boolean |
useAxisOverride
If not set to None, objects will use the axis override for placement.
Declaration
public bool useAxisOverride { get; }
Property Value
Type | Description |
---|---|
Boolean |
useOrientToSurfaceOverride
If not set to None, objects will use the orient to surface override.
Declaration
public bool useOrientToSurfaceOverride { get; }
Property Value
Type | Description |
---|---|
Boolean |
useSnapToPivotOverride
If not set to None, objects will use the snap to pivot override.
Declaration
public bool useSnapToPivotOverride { get; }
Property Value
Type | Description |
---|---|
Boolean |