{"action":"created","comment":{"url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/comments/137602217","pull_request_review_id":61291914,"id":137602217,"diff_hunk":"@@ -72,11 +72,43 @@ public class InteractionToggle : InteractionButton {\n     public Action OnUntoggle = () => { };\n \n     private float _originalRestingHeight;\n+    public float untoggledRestingHeight {\n+      get {\n+        return _originalRestingHeight;\n+      }\n+    }\n \n-    protected override void Start() {\n-      base.Start();\n+    /// <summary>\n+    /// Returns the local position of this toggle when it is able to relax into its untoggled position.\n+    /// </summary>\n+    public Vector3 RelaxedToggledLocalPosition {\n+      get {\n+        return initialLocalPosition + Vector3.back * Mathf.Lerp(minMaxHeight.x, minMaxHeight.y, toggledRestingHeight);\n+      }\n+    }\n+\n+    /// <summary>\n+    /// Returns the local position of this toggle when it is able to relax into its untoggled position.\n+    /// </summary>\n+    public override Vector3 RelaxedLocalPosition {","path":"Assets/LeapMotion/Modules/InteractionEngine/Scripts/UI/InteractionToggle.cs","position":24,"original_position":24,"commit_id":"4427d2bb7f36014620ff581c76a87ee2ab9e0768","original_commit_id":"4427d2bb7f36014620ff581c76a87ee2ab9e0768","user":{"login":"nickjbenson","id":4485426,"avatar_url":"https://avatars3.githubusercontent.com/u/4485426?v=4","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},"body":"This is a compile error; you need to also pull in the InteractionButton, which includes the original RelaxedLocalPosition implementation","created_at":"2017-09-07T17:20:20Z","updated_at":"2017-09-07T17:20:23Z","html_url":"https://github.com/leapmotion/UnityModules/pull/840#discussion_r137602217","pull_request_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/comments/137602217"},"html":{"href":"https://github.com/leapmotion/UnityModules/pull/840#discussion_r137602217"},"pull_request":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840"}}},"pull_request":{"url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840","id":139850879,"html_url":"https://github.com/leapmotion/UnityModules/pull/840","diff_url":"https://github.com/leapmotion/UnityModules/pull/840.diff","patch_url":"https://github.com/leapmotion/UnityModules/pull/840.patch","issue_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/840","number":840,"state":"open","locked":false,"title":"Pulling toggle from particles","user":{"login":"Amarcolina","id":5723312,"avatar_url":"https://avatars1.githubusercontent.com/u/5723312?v=4","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},"body":"","created_at":"2017-09-07T16:29:32Z","updated_at":"2017-09-07T17:20:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"04c991be39e207c8e0d8724af0e0510bc7334b7c","assignee":{"login":"Amarcolina","id":5723312,"avatar_url":"https://avatars1.githubusercontent.com/u/5723312?v=4","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},"assignees":[{"login":"Amarcolina","id":5723312,"avatar_url":"https://avatars1.githubusercontent.com/u/5723312?v=4","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}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840/commits","review_comments_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840/comments","review_comment_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/840/comments","statuses_url":"https://api.github.com/repos/leapmotion/UnityModules/statuses/4427d2bb7f36014620ff581c76a87ee2ab9e0768","head":{"label":"leapmotion:pulling-toggle-from-particles","ref":"pulling-toggle-from-particles","sha":"4427d2bb7f36014620ff581c76a87ee2ab9e0768","user":{"login":"leapmotion","id":2242710,"avatar_url":"https://avatars1.githubusercontent.com/u/2242710?v=4","gravatar_id":"","url":"https://api.github.com/users/leapmotion","html_url":"https://github.com/leapmotion","followers_url":"https://api.github.com/users/leapmotion/followers","following_url":"https://api.github.com/users/leapmotion/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion/subscriptions","organizations_url":"https://api.github.com/users/leapmotion/orgs","repos_url":"https://api.github.com/users/leapmotion/repos","events_url":"https://api.github.com/users/leapmotion/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion/received_events","type":"Organization","site_admin":false},"repo":{"id":52047290,"name":"UnityModules","full_name":"leapmotion/UnityModules","owner":{"login":"leapmotion","id":2242710,"avatar_url":"https://avatars1.githubusercontent.com/u/2242710?v=4","gravatar_id":"","url":"https://api.github.com/users/leapmotion","html_url":"https://github.com/leapmotion","followers_url":"https://api.github.com/users/leapmotion/followers","following_url":"https://api.github.com/users/leapmotion/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion/subscriptions","organizations_url":"https://api.github.com/users/leapmotion/orgs","repos_url":"https://api.github.com/users/leapmotion/repos","events_url":"https://api.github.com/users/leapmotion/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapmotion/UnityModules","description":"Repository containing all Leap Motion asset packages","fork":false,"url":"https://api.github.com/repos/leapmotion/UnityModules","forks_url":"https://api.github.com/repos/leapmotion/UnityModules/forks","keys_url":"https://api.github.com/repos/leapmotion/UnityModules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapmotion/UnityModules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapmotion/UnityModules/teams","hooks_url":"https://api.github.com/repos/leapmotion/UnityModules/hooks","issue_events_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/events{/number}","events_url":"https://api.github.com/repos/leapmotion/UnityModules/events","assignees_url":"https://api.github.com/repos/leapmotion/UnityModules/assignees{/user}","branches_url":"https://api.github.com/repos/leapmotion/UnityModules/branches{/branch}","tags_url":"https://api.github.com/repos/leapmotion/UnityModules/tags","blobs_url":"https://api.github.com/repos/leapmotion/UnityModules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapmotion/UnityModules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapmotion/UnityModules/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapmotion/UnityModules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapmotion/UnityModules/statuses/{sha}","languages_url":"https://api.github.com/repos/leapmotion/UnityModules/languages","stargazers_url":"https://api.github.com/repos/leapmotion/UnityModules/stargazers","contributors_url":"https://api.github.com/repos/leapmotion/UnityModules/contributors","subscribers_url":"https://api.github.com/repos/leapmotion/UnityModules/subscribers","subscription_url":"https://api.github.com/repos/leapmotion/UnityModules/subscription","commits_url":"https://api.github.com/repos/leapmotion/UnityModules/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapmotion/UnityModules/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapmotion/UnityModules/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapmotion/UnityModules/contents/{+path}","compare_url":"https://api.github.com/repos/leapmotion/UnityModules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapmotion/UnityModules/merges","archive_url":"https://api.github.com/repos/leapmotion/UnityModules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapmotion/UnityModules/downloads","issues_url":"https://api.github.com/repos/leapmotion/UnityModules/issues{/number}","pulls_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls{/number}","milestones_url":"https://api.github.com/repos/leapmotion/UnityModules/milestones{/number}","notifications_url":"https://api.github.com/repos/leapmotion/UnityModules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapmotion/UnityModules/labels{/name}","releases_url":"https://api.github.com/repos/leapmotion/UnityModules/releases{/id}","deployments_url":"https://api.github.com/repos/leapmotion/UnityModules/deployments","created_at":"2016-02-18T23:42:29Z","updated_at":"2017-09-04T11:14:17Z","pushed_at":"2017-09-07T17:03:55Z","git_url":"git://github.com/leapmotion/UnityModules.git","ssh_url":"git@github.com:leapmotion/UnityModules.git","clone_url":"https://github.com/leapmotion/UnityModules.git","svn_url":"https://github.com/leapmotion/UnityModules","homepage":null,"size":269996,"stargazers_count":85,"watchers_count":85,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":53,"forks":42,"open_issues":53,"watchers":85,"default_branch":"master"}},"base":{"label":"leapmotion:develop","ref":"develop","sha":"f7d83ae4dd0e1367dc931e13582f54ade33e0e8b","user":{"login":"leapmotion","id":2242710,"avatar_url":"https://avatars1.githubusercontent.com/u/2242710?v=4","gravatar_id":"","url":"https://api.github.com/users/leapmotion","html_url":"https://github.com/leapmotion","followers_url":"https://api.github.com/users/leapmotion/followers","following_url":"https://api.github.com/users/leapmotion/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion/subscriptions","organizations_url":"https://api.github.com/users/leapmotion/orgs","repos_url":"https://api.github.com/users/leapmotion/repos","events_url":"https://api.github.com/users/leapmotion/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion/received_events","type":"Organization","site_admin":false},"repo":{"id":52047290,"name":"UnityModules","full_name":"leapmotion/UnityModules","owner":{"login":"leapmotion","id":2242710,"avatar_url":"https://avatars1.githubusercontent.com/u/2242710?v=4","gravatar_id":"","url":"https://api.github.com/users/leapmotion","html_url":"https://github.com/leapmotion","followers_url":"https://api.github.com/users/leapmotion/followers","following_url":"https://api.github.com/users/leapmotion/following{/other_user}","gists_url":"https://api.github.com/users/leapmotion/gists{/gist_id}","starred_url":"https://api.github.com/users/leapmotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapmotion/subscriptions","organizations_url":"https://api.github.com/users/leapmotion/orgs","repos_url":"https://api.github.com/users/leapmotion/repos","events_url":"https://api.github.com/users/leapmotion/events{/privacy}","received_events_url":"https://api.github.com/users/leapmotion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapmotion/UnityModules","description":"Repository containing all Leap Motion asset packages","fork":false,"url":"https://api.github.com/repos/leapmotion/UnityModules","forks_url":"https://api.github.com/repos/leapmotion/UnityModules/forks","keys_url":"https://api.github.com/repos/leapmotion/UnityModules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapmotion/UnityModules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapmotion/UnityModules/teams","hooks_url":"https://api.github.com/repos/leapmotion/UnityModules/hooks","issue_events_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/events{/number}","events_url":"https://api.github.com/repos/leapmotion/UnityModules/events","assignees_url":"https://api.github.com/repos/leapmotion/UnityModules/assignees{/user}","branches_url":"https://api.github.com/repos/leapmotion/UnityModules/branches{/branch}","tags_url":"https://api.github.com/repos/leapmotion/UnityModules/tags","blobs_url":"https://api.github.com/repos/leapmotion/UnityModules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapmotion/UnityModules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapmotion/UnityModules/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapmotion/UnityModules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapmotion/UnityModules/statuses/{sha}","languages_url":"https://api.github.com/repos/leapmotion/UnityModules/languages","stargazers_url":"https://api.github.com/repos/leapmotion/UnityModules/stargazers","contributors_url":"https://api.github.com/repos/leapmotion/UnityModules/contributors","subscribers_url":"https://api.github.com/repos/leapmotion/UnityModules/subscribers","subscription_url":"https://api.github.com/repos/leapmotion/UnityModules/subscription","commits_url":"https://api.github.com/repos/leapmotion/UnityModules/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapmotion/UnityModules/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapmotion/UnityModules/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapmotion/UnityModules/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapmotion/UnityModules/contents/{+path}","compare_url":"https://api.github.com/repos/leapmotion/UnityModules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapmotion/UnityModules/merges","archive_url":"https://api.github.com/repos/leapmotion/UnityModules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapmotion/UnityModules/downloads","issues_url":"https://api.github.com/repos/leapmotion/UnityModules/issues{/number}","pulls_url":"https://api.github.com/repos/leapmotion/UnityModules/pulls{/number}","milestones_url":"https://api.github.com/repos/leapmotion/UnityModules/milestones{/number}","notifications_url":"https://api.github.com/repos/leapmotion/UnityModules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapmotion/UnityModules/labels{/name}","releases_url":"https://api.github.com/repos/leapmotion/UnityModules/releases{/id}","deployments_url":"https://api.github.com/repos/leapmotion/UnityModules/deployments","created_at":"2016-02-18T23:42:29Z","updated_at":"2017-09-04T11:14:17Z","pushed_at":"2017-09-07T17:03:55Z","git_url":"git://github.com/leapmotion/UnityModules.git","ssh_url":"git@github.com:leapmotion/UnityModules.git","clone_url":"https://github.com/leapmotion/UnityModules.git","svn_url":"https://github.com/leapmotion/UnityModules","homepage":null,"size":269996,"stargazers_count":85,"watchers_count":85,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":53,"forks":42,"open_issues":53,"watchers":85,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840"},"html":{"href":"https://github.com/leapmotion/UnityModules/pull/840"},"issue":{"href":"https://api.github.com/repos/leapmotion/UnityModules/issues/840"},"comments":{"href":"https://api.github.com/repos/leapmotion/UnityModules/issues/840/comments"},"review_comments":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840/comments"},"review_comment":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapmotion/UnityModules/pulls/840/commits"},"statuses":{"href":"https://api.github.com/repos/leapmotion/UnityModules/statuses/4427d2bb7f36014620ff581c76a87ee2ab9e0768"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nickjbenson"}}