CanvasUtility Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.MonoBehaviourCanvasUtility
- 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. |