-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95179a6
commit 8d5c760
Showing
90 changed files
with
728 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace mtion.room.sdk | ||
{ | ||
public static class MTIONSDKToolsAvatarAnimationsTab | ||
{ | ||
private static Vector2 _scrollPos; | ||
private static AvatarAnimations _avatarAnimations; | ||
private static Editor _avatarAnimationsEditor; | ||
|
||
|
||
public static void Refresh() | ||
{ | ||
if (_avatarAnimations == null) | ||
{ | ||
_avatarAnimations = GameObject.FindObjectOfType<AvatarAnimations>(); | ||
_avatarAnimationsEditor = Editor.CreateEditor(_avatarAnimations); | ||
} | ||
} | ||
|
||
public static void Draw() | ||
{ | ||
using (var scrollView = new EditorGUILayout.ScrollViewScope(_scrollPos)) | ||
{ | ||
_scrollPos = scrollView.scrollPosition; | ||
DrawAvatarAnimations(); | ||
} | ||
} | ||
|
||
private static void DrawAvatarAnimations() | ||
{ | ||
if (_avatarAnimations == null) | ||
{ | ||
MTIONSDKToolsWindow.StartBox(); | ||
{ | ||
EditorGUILayout.LabelField("Add an avatar to edit animations", | ||
MTIONSDKToolsWindow.ListHeaderStyle); | ||
} | ||
MTIONSDKToolsWindow.EndBox(); | ||
return; | ||
} | ||
|
||
_avatarAnimationsEditor.OnInspectorGUI(); | ||
} | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
Editor/ControlPanels/MTIONSDKToolsAvatarAnimationsTab.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace mtion.room.sdk | ||
{ | ||
public static class MTIONSDKToolsAvatarMovementTab | ||
{ | ||
private static Vector2 _scrollPos; | ||
private static AvatarMovementSettings _avatarMovement; | ||
private static Editor _avatarMovementEditor; | ||
|
||
|
||
public static void Refresh() | ||
{ | ||
if (_avatarMovement == null) | ||
{ | ||
_avatarMovement = GameObject.FindObjectOfType<AvatarMovementSettings>(); | ||
_avatarMovementEditor = Editor.CreateEditor(_avatarMovement); | ||
} | ||
} | ||
|
||
public static void Draw() | ||
{ | ||
using (var scrollView = new EditorGUILayout.ScrollViewScope(_scrollPos)) | ||
{ | ||
_scrollPos = scrollView.scrollPosition; | ||
DrawAvatarMovementSettings(); | ||
} | ||
} | ||
|
||
private static void DrawAvatarMovementSettings() | ||
{ | ||
if (_avatarMovement == null) | ||
{ | ||
MTIONSDKToolsWindow.StartBox(); | ||
{ | ||
EditorGUILayout.LabelField("Add an avatar to edit movement settings", | ||
MTIONSDKToolsWindow.ListHeaderStyle); | ||
} | ||
MTIONSDKToolsWindow.EndBox(); | ||
return; | ||
} | ||
|
||
_avatarMovementEditor.OnInspectorGUI(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Oops, something went wrong.