Skip to content

Commit

Permalink
fix error on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Guribo committed Apr 22, 2020
1 parent 1cc52e9 commit ba2f2a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Assets/Guribo/Scripts/GuriboUdonUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class GuriboUdonUtils : MonoBehaviour
{
private static bool _interactiveMode = true;
#if UNITY_EDITOR
public class FileModificationWarning : UnityEditor.AssetModificationProcessor
public class AutoValidator : UnityEditor.AssetModificationProcessor
{
static string[] OnWillSaveAssets(string[] paths)
{
Expand All @@ -33,15 +33,14 @@ static string[] OnWillSaveAssets(string[] paths)
return paths;
}
}
#endif

/// <summary>
/// checks all UdonBehaviours in the scene for unset public variables. Displays a dialog to skip or show the error.
/// </summary>
[MenuItem("Guribo/UDON/Validate UdonBehaviour References")]
public static void ValidateUdonBehaviours()
{
#if UNITY_EDITOR


int errorCount = 0;
var udonBehaviours = FindObjectsOfType<UdonBehaviour>();
Expand Down Expand Up @@ -122,7 +121,8 @@ public static void ValidateUdonBehaviours()
{
EditorUtility.DisplayDialog("Conclusion", conclusion, "Ok");
}
#endif

}
#endif
}
}

0 comments on commit ba2f2a0

Please sign in to comment.