Skip to content

Commit

Permalink
Merge pull request #1 from Guribo/development
Browse files Browse the repository at this point in the history
Update 0.0.3
  • Loading branch information
Guribo authored Jan 8, 2021
2 parents 76e3c02 + 14b3c95 commit 3c68c6c
Show file tree
Hide file tree
Showing 30 changed files with 1,826 additions and 30 deletions.
7 changes: 7 additions & 0 deletions LICENSE.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 37 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,54 @@

Scripts that make developing with UDON for VRChat safer and more fun :)

# Requirements

- [UdonSharp](https://github.com/MerlinVR/UdonSharp#requirements) as described by [Merlin](https://github.com/MerlinVR)

## Features

#### Scene Checking
* automatically checks the scene for empty public variables (*null*) and logs to the console (every time assets get saved)
* allows checking manually via menu entry to allow instant navigation to errors

## Usage
#### Editor Scripting
* UdonBehaviour Extension methods for changing and reading UdonBehaviour variables in Edit mode have been added.

Use via menu or silently by saving the scene (Ctrl+s):
## Usage and Examples

### Scene Checking
Use via menu or silently by saving the scene (Ctrl+s):
![Menu](README/menu.png)

Skip or show errors:
Skip or show errors:
![Error Dialog](README/errorMessage.png)

Locate empty variable by name and allow easy fixing of variable (optionally (¬‿¬) ):
Locate empty variable by name and allow easy fixing of variable (optionally (¬‿¬) ):
![Error Location](README/errorLocation.png)

Warns about potential errors is the console and clicking on the message will alos highlight the affected gameobject in the hierarchy:
Warns about potential errors is the console and clicking on the message will alos highlight the affected gameobject in the hierarchy:
![Error Navigation in Console](README/errorNavigationInConsole.png)

In case all errors get skipped a conclusion will be presented:
![Conclusion on Skipping](README/conclusion.png)
In case all errors get skipped a conclusion will be presented:
![Conclusion on Skipping](README/conclusion.png)

### Editor Scripting
> [Example script](Scripts/Examples/InspectorValueChangerExample.cs)
````c#
public UdonBehaviour editorTestingBehaviour;

public void TrySetVariables()
{
editorTestingBehaviour.SetInspectorVariable("testInt", 100);
editorTestingBehaviour.SetInspectorVariable("testString", "Hello World");
editorTestingBehaviour.SetInspectorVariable("testTransform", gameObject.transform);
editorTestingBehaviour.SetInspectorVariable("testGameObject", gameObject);
editorTestingBehaviour.SetInspectorVariable("testScriptReference", editorTestingBehaviour);
}

...
````

![Conclusion on Skipping](README/inspectorValueChangerExample.gif)
*Example scene and scripts are included*

7 changes: 7 additions & 0 deletions README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions README.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions README/conclusion.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions README/errorLocation.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 88 additions & 0 deletions README/errorMessage.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c68c6c

Please sign in to comment.