ValidateInput on static function Outside the class

Issue #325 new
usernameHed created an issue

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;
    }
}

Comments (0)

  1. Log in to comment