Exemplo n.º 1
0
    protected override void OnEnable()
    {
        base.OnEnable();

        if (m_EnableUIInteraction)
        {
            FindOrCreateXRUIInputModule();
            m_InputModule.RegisterInteractable(this);
        }
    }
Exemplo n.º 2
0
        protected override void OnEnable()
        {
            base.OnEnable();
            RebuildSamplePoints();
            FindReferenceFrame();

            if (m_EnableUIInteraction)
            {
                FindOrCreateXRUIInputModule();
                m_InputModule.RegisterInteractable(this);
            }
        }