{"action":"created","issue":{"url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/746","repository_url":"https://api.github.com/repos/googlevr/gvr-unity-sdk","labels_url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/746/comments","events_url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/746/events","html_url":"https://github.com/googlevr/gvr-unity-sdk/issues/746","id":264454197,"number":746,"title":"GvrTrackedController - GVR 1.100","user":{"login":"andyandrewdrew","id":1248853,"avatar_url":"https://avatars3.githubusercontent.com/u/1248853?v=4","gravatar_id":"","url":"https://api.github.com/users/andyandrewdrew","html_url":"https://github.com/andyandrewdrew","followers_url":"https://api.github.com/users/andyandrewdrew/followers","following_url":"https://api.github.com/users/andyandrewdrew/following{/other_user}","gists_url":"https://api.github.com/users/andyandrewdrew/gists{/gist_id}","starred_url":"https://api.github.com/users/andyandrewdrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyandrewdrew/subscriptions","organizations_url":"https://api.github.com/users/andyandrewdrew/orgs","repos_url":"https://api.github.com/users/andyandrewdrew/repos","events_url":"https://api.github.com/users/andyandrewdrew/events{/privacy}","received_events_url":"https://api.github.com/users/andyandrewdrew/received_events","type":"User","site_admin":false},"labels":[{"id":155942141,"url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-11T04:30:09Z","updated_at":"2017-10-11T16:43:17Z","closed_at":null,"author_association":"NONE","body":"In the OnDisable() function, add this line:\r\n`GvrControllerInput.OnStateChanged -= OnControllerStateChanged;`\r\n \r\nOr, in the OnEnable()( function, remove the existing line: \r\n`GvrControllerInput.OnStateChanged -= OnControllerStateChanged;`\r\n\r\nWe subscribe to OnControllerStateChanged in the Awake and OnEnable functions and unsubscribe only in the OnDestroy function. I found this bug when I change scenes. In the console, I get the following error line: \"MissingReferenceException: The object of type 'GvrTrackedController' has been destroyed but you are still trying to access it.\" "},"comment":{"url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/comments/335872293","html_url":"https://github.com/googlevr/gvr-unity-sdk/issues/746#issuecomment-335872293","issue_url":"https://api.github.com/repos/googlevr/gvr-unity-sdk/issues/746","id":335872293,"user":{"login":"fredsa","id":1235362,"avatar_url":"https://avatars3.githubusercontent.com/u/1235362?v=4","gravatar_id":"","url":"https://api.github.com/users/fredsa","html_url":"https://github.com/fredsa","followers_url":"https://api.github.com/users/fredsa/followers","following_url":"https://api.github.com/users/fredsa/following{/other_user}","gists_url":"https://api.github.com/users/fredsa/gists{/gist_id}","starred_url":"https://api.github.com/users/fredsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredsa/subscriptions","organizations_url":"https://api.github.com/users/fredsa/orgs","repos_url":"https://api.github.com/users/fredsa/repos","events_url":"https://api.github.com/users/fredsa/events{/privacy}","received_events_url":"https://api.github.com/users/fredsa/received_events","type":"User","site_admin":false},"created_at":"2017-10-11T16:43:17Z","updated_at":"2017-10-11T16:43:17Z","author_association":"MEMBER","body":"Found in Google VR SDK for Unity 1.100.0.\r\n"}}
{"actor":{"display_login":"fredsa"}}