Bearbeiten

Freigeben über


SpatialAwarenessPlanarObject.CreateSpatialObject Method

Definition

Overloads

CreateSpatialObject(Vector3, Int32, String, Int32)

Creates a SpatialAwarenessPlanarObject.

CreateSpatialObject(Vector3, Vector3, Quaternion, Int32, String, Int32, SpatialAwarenessSurfaceTypes)

Creates a SpatialAwarenessPlanarObject.

CreateSpatialObject(Vector3, Int32, String, Int32)

public:
 static Microsoft::MixedReality::Toolkit::SpatialAwareness::SpatialAwarenessPlanarObject ^ CreateSpatialObject(UnityEngine::Vector3 size, int layer, System::String ^ name, int planeId);
public static Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject CreateSpatialObject (UnityEngine.Vector3 size, int layer, string name, int planeId);
static member CreateSpatialObject : UnityEngine.Vector3 * int * string * int -> Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject
Public Shared Function CreateSpatialObject (size As Vector3, layer As Integer, name As String, planeId As Integer) As SpatialAwarenessPlanarObject

Parameters

size
UnityEngine.Vector3
layer
Int32
name
String
planeId
Int32

Returns

SpatialAwarenessPlanarObject containing the fields that describe the plane.

Applies to

CreateSpatialObject(Vector3, Vector3, Quaternion, Int32, String, Int32, SpatialAwarenessSurfaceTypes)

public static Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject CreateSpatialObject (UnityEngine.Vector3 center, UnityEngine.Vector3 size, UnityEngine.Quaternion rotation, int layer, string name, int planeId, Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes surfaceType = Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes.Unknown);
static member CreateSpatialObject : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Quaternion * int * string * int * Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes -> Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessPlanarObject
Public Shared Function CreateSpatialObject (center As Vector3, size As Vector3, rotation As Quaternion, layer As Integer, name As String, planeId As Integer, Optional surfaceType As SpatialAwarenessSurfaceTypes = Microsoft.MixedReality.Toolkit.SpatialAwareness.SpatialAwarenessSurfaceTypes.Unknown) As SpatialAwarenessPlanarObject

Parameters

center
UnityEngine.Vector3
size
UnityEngine.Vector3
rotation
UnityEngine.Quaternion
layer
Int32
name
String
planeId
Int32

Returns

SpatialAwarenessPlanarObject containing the fields that describe the plane.

Applies to