- Home /
EditorUtility.GetAssetPreview: how to control the rendering camera
We are trying to get control of the render camera that generates the output texture from EditorUtility.GetAssetPreview. It is currently rendering from some position similar to Vector3(1,1,1). Since the asset is a plane it would be nice to move the rendering camera so that it points directly at the asset.
Since there is no documentation of the GetAssetPreview function it seems impossible to find out.
Please help Unity staff!
Answer by numberkruncher · Apr 30, 2012 at 01:10 AM
As far as I can tell the only way to influence the output of this function is to adjust the rotation property of the object.
Your answer
Follow this Question
Related Questions
Custom Inspector button texture? 1 Answer
Deleting prefab located in Project in scripts 0 Answers
Undo.RecordObject isn't working. 7 Answers
How to add Animation Curves on Imported Clips by Script 1 Answer
How to make a editor script that sets the values of serialized variables in the editor 1 Answer