Merge pull request #324 from Unity-Technologies/zxw/3d
refine editor side code
This commit is contained in:
Коммит
338a4d3cf5
|
@ -121,6 +121,10 @@ namespace Unity.UIWidgets.Editor {
|
|||
return;
|
||||
}
|
||||
|
||||
if (_wrapper.renderTexture == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
EditorGUI.DrawPreviewTexture(new Rect(0.0f, 0.0f, width: position.width, height: position.height),
|
||||
image: _wrapper.renderTexture, mat: _uiMaterial);
|
||||
Input_OnGUIEvent(evt: Event.current);
|
||||
|
|
Загрузка…
Ссылка в новой задаче