ValidateInput on static function Outside the class
Issue #325
new
I want to use ValidateInput on static function who are not in the same class.
//in some class
[ValidateInput("ScriptValid")]
public Transform myObj;
//some other class:
public static class OdinValidationExt
{
public static bool ScriptValid<T>(T value)
{
if (EqualityComparer<T>.Default.Equals(value, default(T)))
{
return (true);
}
return false;
}
}