Class MixedRealityBoundarySystem
The Boundary system controls the presentation and display of the users boundary in a scene.
Inheritance
MixedRealityBoundarySystem
Implements
IDisposable
IEqualityComparer
Assembly: cs.temp.dll.dll
public class MixedRealityBoundarySystem : BaseCoreSystem, IMixedRealityBoundarySystem, IMixedRealityEventSystem, IMixedRealityService, IDisposable, IMixedRealityEventSource, IEqualityComparer
Constructors
Declaration
public MixedRealityBoundarySystem(MixedRealityBoundaryVisualizationProfile profile, ExperienceScale scale)
Parameters
Declaration
public MixedRealityBoundarySystem(MixedRealityBoundaryVisualizationProfile profile, ExperienceScale scale)
Parameters
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
public MixedRealityBoundarySystem(IMixedRealityServiceRegistrar registrar, MixedRealityBoundaryVisualizationProfile profile, ExperienceScale scale)
Parameters
Declaration
[Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
public MixedRealityBoundarySystem(IMixedRealityServiceRegistrar registrar, MixedRealityBoundaryVisualizationProfile profile, ExperienceScale scale)
Parameters
Properties
Declaration
public float BoundaryHeight { get; set; }
Property Value
Declaration
public MixedRealityBoundaryVisualizationProfile BoundaryVisualizationProfile { get; }
Property Value
Declaration
public int BoundaryWallsPhysicsLayer { get; set; }
Property Value
Declaration
public Edge[] Bounds { get; }
Property Value
Declaration
public int CeilingPhysicsLayer { get; set; }
Property Value
Declaration
public float? FloorHeight { get; }
Property Value
Declaration
public int FloorPhysicsLayer { get; set; }
Property Value
Declaration
public override string Name { get; protected set; }
Property Value
Declaration
public override string Name { get; protected set; }
Property Value
Declaration
public int PlayAreaPhysicsLayer { get; set; }
Property Value
Declaration
public ExperienceScale Scale { get; set; }
Property Value
Type |
Description |
ExperienceScale |
|
Declaration
public bool ShowBoundaryCeiling { get; set; }
Property Value
Declaration
public bool ShowBoundaryWalls { get; set; }
Property Value
Declaration
public bool ShowFloor { get; set; }
Property Value
Declaration
public bool ShowPlayArea { get; set; }
Property Value
Declaration
public bool ShowTrackedArea { get; set; }
Property Value
Declaration
public uint SourceId { get; }
Property Value
Declaration
public string SourceName { get; }
Property Value
Declaration
public int TrackedAreaPhysicsLayer { get; set; }
Property Value
Methods
Declaration
public bool Contains(Vector3 location, BoundaryType boundaryType = null)
Parameters
Type |
Name |
Description |
Vector3 |
location |
|
BoundaryType |
boundaryType |
|
Returns
Declaration
public override void Destroy()
Declaration
public GameObject GetBoundaryCeilingVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
protected override List<Vector3> GetBoundaryGeometry()
Returns
Type |
Description |
List<Vector3> |
|
Declaration
public GameObject GetBoundaryWallVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public GameObject GetFloorVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public int GetHashCode(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Declaration
public GameObject GetPlayAreaVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public GameObject GetTrackedAreaVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public override void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Declaration
public override void Initialize()
Declaration
public override void Initialize()
Registers the GameObject to listen for boundary events.
Declaration
public override void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Declaration
protected override void SetTrackingSpace()
Declaration
public bool TryGetRectangularBoundsParams(out Vector2 center, out float angle, out float width, out float height)
Parameters
Returns
UnRegisters the GameObject to listen for boundary events.
///
Declaration
public override void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Implements
IDisposable
IEqualityComparer