{"action":"created","issue":{"url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/309","repository_url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit","labels_url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/309/comments","events_url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/309/events","html_url":"https://github.com/thestonefox/SteamVR_Unity_Toolkit/issues/309","id":168330546,"number":309,"title":"UIPointer - Issues with canvas attached to controller","user":{"login":"Cubiverse","id":9885330,"avatar_url":"https://avatars.githubusercontent.com/u/9885330?v=3","gravatar_id":"","url":"https://api.github.com/users/Cubiverse","html_url":"https://github.com/Cubiverse","followers_url":"https://api.github.com/users/Cubiverse/followers","following_url":"https://api.github.com/users/Cubiverse/following{/other_user}","gists_url":"https://api.github.com/users/Cubiverse/gists{/gist_id}","starred_url":"https://api.github.com/users/Cubiverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cubiverse/subscriptions","organizations_url":"https://api.github.com/users/Cubiverse/orgs","repos_url":"https://api.github.com/users/Cubiverse/repos","events_url":"https://api.github.com/users/Cubiverse/events{/privacy}","received_events_url":"https://api.github.com/users/Cubiverse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-29T13:57:12Z","updated_at":"2016-07-31T09:58:44Z","closed_at":"2016-07-31T09:58:44Z","body":"This is more for the information of others who will have canvas's attached to their controllers (for example, ammo read outs on guns or health bars on controllers).\r\n\r\nIf using the UI Pointer it grabs all the world canvas and adjusts them to suit it's needs, when it grabs one (or more) canvas's on the controller it causes the rotation logic to be wrong (I'm not sure why it's wrong but, for example, my gun seems to be hitting something on certain axis causing it to be bend at an odd angle).\r\n\r\nMy solution was to simply add a tag called \"IgnoredByPointer\", set this on all controller attached canvas's and have the SetWorldCanvas do a quick check:\r\n\r\n        public static void SetWorldCanvas(Canvas canvas)\r\n        {\r\n            if (canvas.renderMode != RenderMode.WorldSpace)\r\n            {\r\n                return;\r\n            }\r\n\r\n\t\t\tif (canvas.gameObject.CompareTag (\"IgnoredByPointer\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/comments/236421346","html_url":"https://github.com/thestonefox/SteamVR_Unity_Toolkit/issues/309#issuecomment-236421346","issue_url":"https://api.github.com/repos/thestonefox/SteamVR_Unity_Toolkit/issues/309","id":236421346,"user":{"login":"Cubiverse","id":9885330,"avatar_url":"https://avatars.githubusercontent.com/u/9885330?v=3","gravatar_id":"","url":"https://api.github.com/users/Cubiverse","html_url":"https://github.com/Cubiverse","followers_url":"https://api.github.com/users/Cubiverse/followers","following_url":"https://api.github.com/users/Cubiverse/following{/other_user}","gists_url":"https://api.github.com/users/Cubiverse/gists{/gist_id}","starred_url":"https://api.github.com/users/Cubiverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cubiverse/subscriptions","organizations_url":"https://api.github.com/users/Cubiverse/orgs","repos_url":"https://api.github.com/users/Cubiverse/repos","events_url":"https://api.github.com/users/Cubiverse/events{/privacy}","received_events_url":"https://api.github.com/users/Cubiverse/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T09:58:44Z","updated_at":"2016-07-31T09:58:44Z","body":"Yeah, probably a good idea to keep them similar..\r\n\r\nAt the moment most of these sorts of issues are \"corner\" cases (given they are sometimes specific to usage) but I suspect as more and more use the toolkit for real world games these scenario's will pop-up!"}}
{"actor":{"display_login":"Cubiverse"}}