EditorGUILayout.ObjectField obsolete?

Unity3D/Problems 2016. 6. 9. 17:29
반응형




7
Best Answer

Answer by frarees 

Use the recommended overloads instead. In your case:

  1. target.myClass = EditorGUILayout.ObjectField("Label:", target.myClass, typeof(MyClass), true);

That true above tells the editor property to allow also scene objects. Set to false if you only want assets to be allowed.

Add comment · Share

반응형

'Unity3D > Problems' 카테고리의 다른 글

GPGS Invalid classname Issue  (0) 2016.07.13
NavMeshAgent 목표포착  (0) 2016.06.09
C# 정확한 Type 의 비교 ( IsAssignableFrom vs is )  (0) 2016.06.09
LitJSON Limitations/Warnings  (0) 2016.05.10
페이스북 sdk 컴파일 오류 7.5  (0) 2016.05.01
: