Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start switching to export plugin callbacks
- Loading branch information
1 parent
db6bd69
commit 595b5f1
Showing
20 changed files
with
322 additions
and
126 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,21 @@ | ||
using UnityEditor; | ||
using UnityGLTF.Plugins; | ||
|
||
namespace UnityGLTF | ||
{ | ||
[CustomEditor(typeof(GltfPlugin), true)] | ||
public class GltfPluginEditor: Editor | ||
{ | ||
// Follows the default implementation of OnInspectorGUI, but skips the script field | ||
public override void OnInspectorGUI() | ||
{ | ||
serializedObject.Update(); | ||
var iterator = serializedObject.GetIterator(); | ||
// skip script field | ||
iterator.NextVisible(true); | ||
while (iterator.NextVisible(false)) | ||
EditorGUILayout.PropertyField(iterator, true); | ||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
} | ||
} |
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.