How to create an editor screenview like "camera preview" window for cameras?
Unity3D/Script / 2013. 2. 4. 14:23
You can create a window in your gui with Gui.Windowhttp://unity3d.com/support/documentation/ScriptReference/GUI.Window.html?from=EditorWindow
Have the window you just made contain a RenderTexture.http://unity3d.com/support/documentation/Components/class-RenderTexture.html
http://unity3d.com/support/documentation/ScriptReference/EditorWindow-autoRepaintOnSceneChange
출처 : http://answers.unity3d.com/questions/33858/how-to-create-an-editor-screenview-like-camera-pre.html
반응형
'Unity3D > Script' 카테고리의 다른 글
Disable warning messages (0) | 2013.02.06 |
---|---|
새로운 창으로 카메라 뷰어 만들기 (0) | 2013.02.05 |
마우스 휠 스크롤 확인 (0) | 2013.01.31 |
오브젝트 카메라 프러스텀 안에 가두기 (0) | 2013.01.29 |
Using GUI slider to control animation on object (0) | 2013.01.27 |