{"__v":0,"_id":"58796782cd4a9c37007c9756","category":{"version":"58796781cd4a9c37007c96ef","project":"571fa55ca0acd42000af9545","_id":"58796781cd4a9c37007c96f1","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-31T16:56:01.612Z","from_sync":false,"order":1,"slug":"prefabs","title":"Prefabs"},"parentDoc":null,"project":"571fa55ca0acd42000af9545","user":"571fa519db52d01700f5cf3d","version":{"__v":4,"_id":"58796781cd4a9c37007c96ef","project":"571fa55ca0acd42000af9545","createdAt":"2017-01-13T23:49:21.393Z","releaseDate":"2017-01-13T23:49:21.393Z","categories":["58796781cd4a9c37007c96f0","58796781cd4a9c37007c96f1","58796781cd4a9c37007c96f2","58796781cd4a9c37007c96f3","58796781cd4a9c37007c96f4","58796781cd4a9c37007c96f5","58796781cd4a9c37007c96f6","58796781cd4a9c37007c96f7","58796781cd4a9c37007c96f8","58796781cd4a9c37007c96f9","58796781cd4a9c37007c96fa","58796781cd4a9c37007c96fb","58796781cd4a9c37007c96fc","58796781cd4a9c37007c96fd","58796781cd4a9c37007c96fe","58796781cd4a9c37007c96ff","58796781cd4a9c37007c9700","58b157ca1756cf370022f90d","58b1596f5dae732f00adeca2","58b1605a5dae732f00adecb1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Mukota","version_clean":"3.1.0","version":"3.1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-19T13:01:32.283Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"> extends RadialMenuController\n\n## Overview\n\nThis script inherited from `RadialMenuController` and therefore can be used instead of `RadialMenuController` to allow the RadialMenu to be anchored to any object, not just a controller. The RadialMenu will show when a controller is near the object and the buttons can be clicked with the `Use Alias` button. The menu also automatically rotates towards the user.\n\nTo convert the default `RadialMenu` prefab to be independent of the controllers:\n\n* Make the `RadialMenu` a child of an object other than a controller.\n* Position and scale the menu by adjusting the transform of the `RadialMenu` empty.\n* Replace `RadialMenuController` with `VRTK_IndependentRadialMenuController`.\n* Ensure the parent object has the `VRTK_InteractableObject` script.\n* Verify that `Is Usable` and `Hold Button to Use` are both checked.\n* Attach `VRTK_InteractTouch` and `VRTK_InteractUse` scripts to 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.","excerpt":"","slug":"independentradialmenucontroller","type":"basic","title":"Independent Radial Menu Controller"}

Independent Radial Menu Controller


> extends RadialMenuController ## Overview This script inherited from `RadialMenuController` and therefore can be used instead of `RadialMenuController` to allow the RadialMenu to be anchored to any object, not just a controller. The RadialMenu will show when a controller is near the object and the buttons can be clicked with the `Use Alias` button. The menu also automatically rotates towards the user. To convert the default `RadialMenu` prefab to be independent of the controllers: * Make the `RadialMenu` a child of an object other than a controller. * Position and scale the menu by adjusting the transform of the `RadialMenu` empty. * Replace `RadialMenuController` with `VRTK_IndependentRadialMenuController`. * Ensure the parent object has the `VRTK_InteractableObject` script. * Verify that `Is Usable` and `Hold Button to Use` are both checked. * Attach `VRTK_InteractTouch` and `VRTK_InteractUse` scripts to 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.