Skip to content

Commit

Permalink
Added Screen Space-Camera and World Space canvas support
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed May 29, 2023
1 parent 7b3d54e commit 69d37a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugins/RuntimeSceneGizmo/README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Runtime Scene Gizmo =
= Runtime Scene Gizmo (v1.0.1) =

Online documentation available at: https://github.com/yasirkula/UnityRuntimeSceneGizmo
E-mail: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion Plugins/RuntimeSceneGizmo/Scripts/SceneGizmoRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private Vector3 GetNormalizedPointerPosition( PointerEventData eventData )
{
Vector2 localPos;
Vector2 size = imageHolderTR.rect.size;
RectTransformUtility.ScreenPointToLocalPointInRectangle( imageHolderTR, eventData.position, null, out localPos );
RectTransformUtility.ScreenPointToLocalPointInRectangle( imageHolderTR, eventData.position, eventData.enterEventCamera, out localPos );

return new Vector3( 1f + localPos.x / size.x, 1f + localPos.y / size.y, 0f );
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.yasirkula.runtimescenegizmo",
"displayName": "Runtime Scene Gizmo",
"version": "1.0.0",
"version": "1.0.1",
"documentationUrl": "https://github.com/yasirkula/UnityRuntimeSceneGizmo",
"changelogUrl": "https://github.com/yasirkula/UnityRuntimeSceneGizmo/releases",
"licensesUrl": "https://github.com/yasirkula/UnityRuntimeSceneGizmo/blob/master/LICENSE.txt",
Expand Down

0 comments on commit 69d37a5

Please sign in to comment.