-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swapped microphone from a UI element to a renderer for sprite
- Loading branch information
Showing
10 changed files
with
171 additions
and
222 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
37 changes: 37 additions & 0 deletions
37
Basis/Packages/com.basis.framework/Editor/BasisUIHeadsUpLoadingbarEditor.cs
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,37 @@ | ||
using Basis.Scripts.UI.UI_Panels; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
public class BasisUIHeadsUpLoadingbarEditor : EditorWindow | ||
{ | ||
private BasisUIHeadsUpLoadingbarEditor targetScript; | ||
public string UniqueId = "UniqueIDOutput"; | ||
// Create a menu item to open the window | ||
[MenuItem("Basis/Tests/Loading Bar Tests")] | ||
public static void ShowWindow() | ||
{ | ||
GetWindow<BasisUIHeadsUpLoadingbarEditor>("Custom Editor Window"); | ||
} | ||
public bool IsRunning = false; | ||
private void OnGUI() | ||
{ | ||
GUILayout.Label("Execute Task from Editor", EditorStyles.boldLabel); | ||
|
||
// Display a button | ||
if (GUILayout.Button("Start Testing")) | ||
{ | ||
CallFunction(); | ||
IsRunning = true; | ||
} | ||
if (IsRunning) | ||
{ | ||
float randomValue = UnityEngine.Random.Range(0f, 99f); | ||
BasisUILoadingBar.ProgressReport(UniqueId, randomValue, "Test Message " + randomValue); | ||
} | ||
} | ||
|
||
private void CallFunction() | ||
{ | ||
BasisUILoadingBar.ProgressReport(UniqueId, 33, "Test Message"); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
Basis/Packages/com.basis.framework/Editor/BasisUIHeadsUpLoadingbarEditor.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
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
Oops, something went wrong.