UnityEngine.BoneWeight.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            return (((((((this.boneIndex0.GetHashCode() ^ (this.boneIndex1.GetHashCode() << 2)) ^ (this.boneIndex2.GetHashCode() >> 2)) ^ (this.boneIndex3.GetHashCode() >> 1)) ^ (this.weight0.GetHashCode() << 5)) ^ (this.weight1.GetHashCode() << 4)) ^ (this.weight2.GetHashCode() >> 4)) ^ (this.weight3.GetHashCode() >> 3));
        }

Usage Example

コード例 #1
0
    static bool BoneWeight_GetHashCode(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 0)
        {
            UnityEngine.BoneWeight argThis = (UnityEngine.BoneWeight)vc.csObj;                JSApi.setInt32((int)JSApi.SetType.Rval, (System.Int32)(argThis.GetHashCode()));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }