Skyworth Interactive Tools
Why use Skyworth interactive tools? Skyworth interactive tools include the following functions:
- Handle model
- Anchor interaction
- Event system
- Can automatically switch between handle interaction or anchor point interaction
- Anchor Point Countdown Click
- Keyboard
Quick start
Please follow the steps below to build your apk. First, please import Skyworth Plugin SDK, please refer to the document Build the first APK
Steps:
Import Skyworth Intercation Toolkit.unitypackage to the project, and you will see the file in the picture after importing.
Create a new scene and name it SkyworthDemo.
Click Skyworth Interaction Tools/XR GameObject/Player in the menu bar. This will convert the Main Camera in the scene into a Player.
Click Skyworth Interaction Tools/XR GameObject/UI Canvas in the menu bar. This will create a Canvas in the scene, and then create a Button in this Canvas.
Add the SkyworthDemo scene to
Scenes In Build
, and then clickBuild And Run
.
Introduction of key components
Component | Description |
---|---|
GvrControllerInput | Mainly used for device connection judgment and event forwarding |
GvrReticlePointer | Head Control Anchor Point Components |
GvrPointerInputModule | An important component of EventSystem, completes the triggering of UI events |
GvrEditorEmulator | Hold down the Alt key to simulate head rotation in the editor |
SvrTrackDevices | Key classes of different handle models |
Anchor point countdown click
When the anchor point is hovered to the button, a countdown circle will be displayed on the anchor point, and a click event will be triggered when the countdown ends.
Find the SvrReticleDownClick prefab in the Assets> SkyworthInteraction> Assets> Resources> Prefab folder.
Drag the prefab into the Player> Main Camera> GvrReticlePointer node in the Hierarchy.
Click
Add Component
on the Button to be triggered, enterSvr
in the input box, click Svr Auto Click Enable, and then a SvrAutoClickEnable script will be hung on this Button.
SvrReticleDownClick | Introduction |
---|---|
OnelySvrAutoClickEnable | Tis used to determine whether to enable global event triggering, set to true can only be used on the component with the SvrAutoClickEnable script hanging, set to false can be used globally |