Translates an instance ID to a reference to an object.
If the object is not loaded from disk, loads it from disk.
Editor Window to enter the instance ID and print the name of the object.
// Simple editor window that prints on the console the GameObject // name given an ID. // If no objec is found it prints an error.
class EditorUtilityInstanceIDToObject extendsEditorWindow {
var id : int; @MenuItem("Examples/ID To Name") staticfunction Init() { var window = GetWindow(EditorUtilityInstanceIDToObject); window.position = Rect(0,0,160, 60); window.Show(); }