CameraMotionBlurEditor 在uinty5.x 报错

Ambiguous reference 'preview': CameraMotionBlurEditor.preview, UnityEditor.Editor.preview.

需要把var preview : SerializedProperty;
改为 var preview_ : SerializedProperty;

 

修改

preview

preview_

 


var preview_ : SerializedProperty;

preview_ = serObj.FindProperty ("preview");  

EditorGUILayout.PropertyField (preview_, new GUIContent("Preview"));

if (preview_.boolValue)

 

posted on 2019-01-09 15:20  &大飞  阅读(189)  评论(0编辑  收藏  举报

导航