CanvasUtility Class
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.
C++
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 Unity
Engine. Event Systems. IEvent System Handler
On |
|
On |
|
On |
|
On |
|
Verify |
Verifies and updates MRTK related canvas configuration. |
Продукт | Версії |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |