- Home /
Procedural Prefab preview possible?
Pardon my alliteration :)
I have a script on some of my prefabs that creates the game objects with mesh&renderer components at runtime. But the preview icons for these prefabs, such as in the project browser, just show up as cubes. I'd like my artists to be able to more easily tell what kind of objects they are working with beyond just the names.
Is it possible for my script to create the image to appear in that preview window? Or is there a way to attach an image that will be used as the preview for the asset which doesn't impact the runtime? We are using Unity Pro if that's relevant.
I believe you need to make a custom Editor in order to change the preview pane. Sorry I can't link anything, I can't remember where I saw the page about it.
$$anonymous$$aybe something like this? http://docs.unity3d.com/ScriptReference/AssetPreview.Get$$anonymous$$iniThumbnail.html
Your answer

Follow this Question
Related Questions
Change angle of camera in prefab preview 4 Answers
Getting at the prefab preview window 3 Answers
Assigning a dynamically created prefab to a ScriptableObject 2 Answers
i would like to create a preview of an instantiation but im haveing a problem with my code 1 Answer
Network.Instantiate a non-prefab? 1 Answer