EditorGUILayout.ObjectField obsolete?
Unity3D/Problems 2016. 6. 9. 17:29Use the recommended overloads instead. In your case:
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.
· 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 |