static public void Output(ComponentInfo component) { var item = Window.InstantiateInOutputView(componentViewPrefab).GetComponent <ComponentItem>(); item.component = component.instance; item.title = string.Format("<b><i>{0}</i></b> ({1})", component.componentName, component.gameObjectPath); foreach (var field in component.fields) { InstantiateFieldItem(component, item, field); } }
static public void Inspect(GameObject gameObject) { if (gameObject == null) { Log.Warn("given GameObject is null."); return; } Utility.RunOnNextFrame(() => { var item = Window.InstantiateInOutputView(gameObjectViewPrefab).GetComponent <GameObjectItem>();; item.targetGameObject = gameObject; item.title = gameObject.name; }); }