Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/esnya/InariUdon
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Aug 30, 2021
2 parents c964b25 + e46d3ae commit f61a1dd
Show file tree
Hide file tree
Showing 19 changed files with 894 additions and 333 deletions.
6 changes: 4 additions & 2 deletions Assets/InariUdon/Editor/InariUdonValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
using System.Reflection;
using System;
using UnityEditor;
#endif

namespace InariUdon
namespace InariUdon.Editor
{
public class InariUdonValidator
{
#if !COMPILER_UDONSHARP && UNITY_EDITOR
public static bool Validate<T>(T target) where T : UdonSharpBehaviour
{
if (Application.isPlaying) return false;
Expand Down Expand Up @@ -48,6 +50,6 @@ public static bool Validate(UnityEngine.Object target, bool condition, string me
if (!condition) Debug.LogError(message, target);
return condition;
}
#endif
}
}
#endif
Loading

0 comments on commit f61a1dd

Please sign in to comment.