UnityEditor.EditorUtility.InstanceIDToObject C# (CSharp) Method

InstanceIDToObject() private method

private InstanceIDToObject ( int instanceID ) : Object
instanceID int
return Object
        public static extern Object InstanceIDToObject(int instanceID);
        internal static GameObject InstantiateForAnimatorPreview(Object original)

Usage Example

示例#1
0
 private static void UpdateSchedulers()
 {
     Dictionary <int, Panel> .Enumerator panelsIterator = UIElementsUtility.GetPanelsIterator();
     while (panelsIterator.MoveNext())
     {
         KeyValuePair <int, Panel> current = panelsIterator.Current;
         Panel value = current.Value;
         if (value.contextType == ContextType.Editor)
         {
             IScheduler scheduler = value.scheduler;
             value.timerEventScheduler.UpdateScheduledEvents();
             DataWatchService dataWatchService = value.dataWatch as DataWatchService;
             dataWatchService.ProcessNotificationQueue();
             if (value.visualTree.IsDirty(ChangeType.Repaint))
             {
                 GUIView gUIView = EditorUtility.InstanceIDToObject(value.instanceID) as GUIView;
                 if (gUIView != null)
                 {
                     gUIView.Repaint();
                 }
             }
         }
     }
 }
All Usage Examples Of UnityEditor.EditorUtility::InstanceIDToObject
EditorUtility