Bewerken

Delen via


CanvasUtility Class

Definition

Helper class for setting up canvases for use in the MRTK.

public ref class CanvasUtility : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Services/CanvasUtility")]
[UnityEngine.DisallowMultipleComponent]
[UnityEngine.RequireComponent(typeof(UnityEngine.Canvas))]
public class CanvasUtility : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Services/CanvasUtility")>]
[<UnityEngine.DisallowMultipleComponent>]
[<UnityEngine.RequireComponent(typeof(UnityEngine.Canvas))>]
type CanvasUtility = class
    inherit MonoBehaviour
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
Public Class CanvasUtility
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityPointerHandler
Inheritance
UnityEngine.MonoBehaviour
CanvasUtility
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.DisallowMultipleComponentAttribute UnityEngine.RequireComponentAttribute
Implements
IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

CanvasUtility()

Methods

OnPointerClicked(MixedRealityPointerEventData)
OnPointerDown(MixedRealityPointerEventData)
OnPointerDragged(MixedRealityPointerEventData)
OnPointerUp(MixedRealityPointerEventData)
VerifyCanvasConfiguration()

Verifies and updates MRTK related canvas configuration.

Applies to