Пример #1
0
        internal static GameObject GetGameObjectForEvent(int eventIndex)
        {
            GameObject gameObject = null;
            Component  component  = EditorUtility.InstanceIDToObject(FrameDebuggerUtility.GetFrameEventRendererID(eventIndex)) as Component;

            if (component != null)
            {
                gameObject = component.gameObject;
            }
            return(gameObject);
        }
Пример #2
0
        internal static GameObject GetGameObjectForEvent(int eventIndex)
        {
            GameObject result = null;
            int        frameEventRendererID = FrameDebuggerUtility.GetFrameEventRendererID(eventIndex);
            Component  component            = EditorUtility.InstanceIDToObject(frameEventRendererID) as Component;

            if (component != null)
            {
                result = component.gameObject;
            }
            return(result);
        }