{"action":"created","issue":{"url":"https://api.github.com/repos/leapmotion/UnityModules/issues/163","repository_url":"https://api.github.com/repos/leapmotion/UnityModules","labels_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/163/comments","events_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/163/events","html_url":"https://github.com/leapmotion/UnityModules/issues/163","id":150989345,"number":163,"title":"Investigate changing IHandModel lifecycle callbacks","user":{"login":"Amarcolina","id":5723312,"avatar_url":"https://avatars2.githubusercontent.com/u/5723312?v=3","gravatar_id":"","url":"https://api.github.com/users/Amarcolina","html_url":"https://github.com/Amarcolina","followers_url":"https://api.github.com/users/Amarcolina/followers","following_url":"https://api.github.com/users/Amarcolina/following{/other_user}","gists_url":"https://api.github.com/users/Amarcolina/gists{/gist_id}","starred_url":"https://api.github.com/users/Amarcolina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amarcolina/subscriptions","organizations_url":"https://api.github.com/users/Amarcolina/orgs","repos_url":"https://api.github.com/users/Amarcolina/repos","events_url":"https://api.github.com/users/Amarcolina/events{/privacy}","received_events_url":"https://api.github.com/users/Amarcolina/received_events","type":"User","site_admin":false},"labels":[{"id":525283835,"url":"https://api.github.com/repos/leapmotion/UnityModules/labels/DevX","name":"DevX","color":"5319e7","default":false},{"id":328437190,"url":"https://api.github.com/repos/leapmotion/UnityModules/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-25T21:43:45Z","updated_at":"2017-06-19T22:46:06Z","closed_at":null,"body":"This is the existing IHandModel lifecycle.\nInitHand -> (BeginHand -> UpdateHand -> FinishHand -> BeginHand...)\n\nThis is very close, or identical to the default Unity Monobehaviour lifecycle.\n(Awake/Start) -> (OnEnable -> Update/FixedUpdate -> OnDisable -> OnEnable ...)\n\nIt might make things easier on both us and developers if we tried to switch over to using the default MonoBehaviour lifecycle.  It could make it easier to develop new types of HandModel because one would be working within a framework that is more familiar.  It could also help prevent errors because we would not be keeping track of additional state that could become inconsistent.  It could also help prevent confusion (currently hand models can be disabled, but that means nothing...)\n\nOne possible proposal:\n- Awake: Used for non-hand related initialization of the model\n- OnEnable:  Called when a model begins tracking (comparable to BeginHand)\n- Start: Called the first time a model begins tracking (comparable to InitHand)\n- OnDisable:  Called when a model stops tracking (comparable to FinishHand)\n- UpdateHand:  Still would be a custom callback to allow update ordering and the difference between Update and FixedUpdate to be automatic.\n\nNot a complete proposal, but definitely something to think about.\n"},"comment":{"url":"https://api.github.com/repos/leapmotion/UnityModules/issues/comments/309594506","html_url":"https://github.com/leapmotion/UnityModules/issues/163#issuecomment-309594506","issue_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/163","id":309594506,"user":{"login":"nickjbenson","id":4485426,"avatar_url":"https://avatars0.githubusercontent.com/u/4485426?v=3","gravatar_id":"","url":"https://api.github.com/users/nickjbenson","html_url":"https://github.com/nickjbenson","followers_url":"https://api.github.com/users/nickjbenson/followers","following_url":"https://api.github.com/users/nickjbenson/following{/other_user}","gists_url":"https://api.github.com/users/nickjbenson/gists{/gist_id}","starred_url":"https://api.github.com/users/nickjbenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickjbenson/subscriptions","organizations_url":"https://api.github.com/users/nickjbenson/orgs","repos_url":"https://api.github.com/users/nickjbenson/repos","events_url":"https://api.github.com/users/nickjbenson/events{/privacy}","received_events_url":"https://api.github.com/users/nickjbenson/received_events","type":"User","site_admin":false},"created_at":"2017-06-19T22:46:06Z","updated_at":"2017-06-19T22:46:06Z","body":"I like this idea, and I'd consider making HandModels follow a more familiar workflow to be a DevX issue"}}
{"actor":{"display_login":"nickjbenson"}}