{"_id":"5b1f8576c2505d00031254a4","category":{"_id":"5b1f8576c2505d0003125425","version":"5b1f8576c2505d00031254db","project":"571fa55ca0acd42000af9545","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-31T16:56:01.612Z","from_sync":false,"order":1,"slug":"prefabs","title":"Prefabs"},"user":"571fa519db52d01700f5cf3d","parentDoc":null,"project":"571fa55ca0acd42000af9545","version":{"_id":"5b1f8576c2505d00031254db","project":"571fa55ca0acd42000af9545","__v":4,"forked_from":"594949e52be16d0026ec04cd","createdAt":"2017-06-20T16:14:29.816Z","releaseDate":"2017-06-20T16:14:29.816Z","categories":["5b1f8576c2505d0003125424","5b1f8576c2505d0003125425","5b1f8576c2505d0003125426","5b1f8576c2505d0003125427","5b1f8576c2505d0003125428","5b1f8576c2505d0003125429","5b1f8576c2505d000312542a","5b1f8576c2505d000312542b","5b1f8576c2505d000312542c","5b1f8576c2505d000312542d","5b1f8576c2505d000312542e","5b1f8576c2505d000312542f","5b1f8576c2505d0003125430","5b1f8576c2505d0003125431","5b1f8576c2505d0003125432","5b1f8576c2505d0003125433","5b1f8576c2505d0003125434","5b1f8576c2505d0003125435","5b1f8576c2505d0003125436","5b1f8576c2505d0003125437","5b1f8576c2505d0003125438","5b1f8aab9c683000032979e7","5b1f8b2f3073470003ffa5da","5b1f8bd9fd653400031d94f4","5b1f900bd4c5f000036b57bd"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Mangalica","version_clean":"3.3.0","version":"3.3.0"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-19T13:01:32.283Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":12,"body":"> extends VRTK_RadialMenuController\n\n## Overview\n\nAllows the RadialMenu to be anchored to any object, not just a controller.\n\n**Prefab Usage:**\n * Place the `VRTK/Prefabs/RadialMenu/RadialMenu` prefab as a child of the GameObject to associate the Radial Menu with.\n * Position and scale the menu by adjusting the transform of the `RadialMenu` empty.\n * Replace `VRTK_RadialMenuController` with `VRTK_IndependentRadialMenuController` that is located on the `RadialMenu/RadialMenuUI/Panel` GameObject.\n * Ensure the parent object has the `VRTK_InteractableObject` script.\n * Verify that `Is Usable` and `Hold Button to Use` are both checked on the `VRTK_InteractableObject`.\n * Attach `VRTK_InteractTouch` and `VRTK_InteractUse` scripts to the objects that will activate the Radial Menu (e.g. the Controllers).\n\n## Inspector Parameters\n\n * **Events Manager:** If the RadialMenu is the child of an object with VRTK_InteractableObject attached, this will be automatically obtained. It can also be manually set.\n * **Add Menu Collider:** Whether or not the script should dynamically add a SphereCollider to surround the menu.\n * **Collider Radius Multiplier:** This times the size of the RadialMenu is the size of the collider.\n * **Hide After Execution:** If true, after a button is clicked, the RadialMenu will hide.\n * **Offset Multiplier:** How far away from the object the menu should be placed, relative to the size of the RadialMenu.\n * **Rotate Towards:** The object the RadialMenu should face towards. If left empty, it will automatically try to find the Headset Camera.\n\n## Class Methods\n\n### UpdateEventsManager/0\n\n  > `public virtual void UpdateEventsManager()`\n\n * Parameters\n   * _none_\n * Returns\n   * _none_\n\nThe UpdateEventsManager method is used to update the events within the menu controller.\n\n## Example\n\n`VRTK/Examples/030_Controls_RadialTouchpadMenu` displays a radial menu for each controller. The left controller uses the `Hide On Release` variable, so it will only be visible if the left touchpad is being touched. It also uses the `Execute On Unclick` variable to delay execution until the touchpad button is unclicked. The example scene also contains a demonstration of anchoring the RadialMenu to an interactable cube instead of a controller.","excerpt":"","slug":"independentradialmenucontroller","type":"basic","title":"Independent Radial Menu Controller"}

Independent Radial Menu Controller


> extends VRTK_RadialMenuController ## Overview Allows the RadialMenu to be anchored to any object, not just a controller. **Prefab Usage:** * Place the `VRTK/Prefabs/RadialMenu/RadialMenu` prefab as a child of the GameObject to associate the Radial Menu with. * Position and scale the menu by adjusting the transform of the `RadialMenu` empty. * Replace `VRTK_RadialMenuController` with `VRTK_IndependentRadialMenuController` that is located on the `RadialMenu/RadialMenuUI/Panel` GameObject. * Ensure the parent object has the `VRTK_InteractableObject` script. * Verify that `Is Usable` and `Hold Button to Use` are both checked on the `VRTK_InteractableObject`. * Attach `VRTK_InteractTouch` and `VRTK_InteractUse` scripts to the objects that will activate the Radial Menu (e.g. the Controllers). ## Inspector Parameters * **Events Manager:** If the RadialMenu is the child of an object with VRTK_InteractableObject attached, this will be automatically obtained. It can also be manually set. * **Add Menu Collider:** Whether or not the script should dynamically add a SphereCollider to surround the menu. * **Collider Radius Multiplier:** This times the size of the RadialMenu is the size of the collider. * **Hide After Execution:** If true, after a button is clicked, the RadialMenu will hide. * **Offset Multiplier:** How far away from the object the menu should be placed, relative to the size of the RadialMenu. * **Rotate Towards:** The object the RadialMenu should face towards. If left empty, it will automatically try to find the Headset Camera. ## Class Methods ### UpdateEventsManager/0 > `public virtual void UpdateEventsManager()` * Parameters * _none_ * Returns * _none_ The UpdateEventsManager method is used to update the events within the menu controller. ## Example `VRTK/Examples/030_Controls_RadialTouchpadMenu` displays a radial menu for each controller. The left controller uses the `Hide On Release` variable, so it will only be visible if the left touchpad is being touched. It also uses the `Execute On Unclick` variable to delay execution until the touchpad button is unclicked. The example scene also contains a demonstration of anchoring the RadialMenu to an interactable cube instead of a controller.