1 using System.Collections;
2 using System.Collections.Generic;
4 using UnityEngine.EventSystems;
10 namespace AVR.UI.Utils {
22 Transform og_parent = null;
27 canvas = GetComponentInParent<AVR_Canvas>();
29 AVR_DevConsole.cerror(
"WindowHandle does not have an AVR_Canvas attatched!",
this);
40 og_parent = canvas.transform.parent;
41 canvas.anchor_to_transform(AVR_UIInteractionProvider.currentActive.transform);
50 canvas.anchor_to_transform(og_parent);
Monobehaviour but with an added URL button to a documentation page.
AVR_Canvas canvas
Canvas that is moved by this handle
void OnPointerDown(PointerEventData eventData)
Sets the documentation html file inside of Packages/com.avr.core/Documentation/html of a given class...
Window-Handle that allows the attatched canvas to be click and dragged in world space by a UIInteract...
void OnPointerUp(PointerEventData eventData)
Represents a canvas for VR interaction purposes. Allows for interaction with the AVR_UIInteractionPro...