UnityEngine.Event.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            int keyCode = 1;
            if (this.isKey)
            {
                keyCode = (ushort) this.keyCode;
            }
            if (this.isMouse)
            {
                keyCode = this.mousePosition.GetHashCode();
            }
            return ((keyCode * 0x25) | this.modifiers);
        }

Usage Example

 static int GetHashCode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Event obj = (UnityEngine.Event)ToLua.CheckObject(L, 1, typeof(UnityEngine.Event));
         int o = obj.GetHashCode();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }