public void Init() { //EditorUtility.CreateGameObjectWithHideFlags() //PreviewRenderUtility ObjectPreview preview = new ObjectPreview(); preview.DrawPreview(new Rect(0, 0, 100, 100)); }
public void DrawPreview(Rect previewArea) { #if DEV_MODE && PI_ASSERTATIONS Debug.Assert(HasPreviewGUI()); #endif objectPreview.DrawPreview(previewArea); }
public override void DrawPreview(Rect previewArea) { // If the importer is drawing the previews, // respect that when passing through to object preview helper var previewable = useAssetDrawPreview ? preview : this; ObjectPreview.DrawPreview(previewable, previewArea, assetTargets); }