UnityEditor.CurveUtility.GetPathAndTypeID C# (CSharp) Method

GetPathAndTypeID() public static method

public static GetPathAndTypeID ( string path, Type type ) : int
path string
type System.Type
return int
        public static int GetPathAndTypeID(string path, Type type)
        {
            return ((path.GetHashCode() * 0x1b) ^ type.GetHashCode());
        }

Usage Example

示例#1
0
        public void RefreshAnimatedState(AnimationHierarchyData data, Transform tr)
        {
            this.m_Animated = false;
            string path = AnimationUtility.CalculateTransformPath(tr, data.animated.transform);

            foreach (int num in data.animatedPaths.Keys)
            {
                if (num == CurveUtility.GetPathAndTypeID(path, this.obj.GetType()))
                {
                    this.m_Animated = true;
                    break;
                }
            }
        }
All Usage Examples Of UnityEditor.CurveUtility::GetPathAndTypeID