Чтобы использовать все возможности нашего сообщества, вам необходимо войти в ваш аккаунт
Создал : Administrator
Последнее обновление: 2014-06-19 16:32:59
How to delete \ destroy GameObject in Edit Mode ?
 
Destroy may not be called from edit mode! Use DestroyImmediate instead.
Also think twice if you really want to destroy something in edit mode. Since this will destroy objects permanently.
UnityEngine.Object: Destroy(Object)
CarEditor:Refresh() (at Assets/Editor/CarEditor.cs:195)
CarEditor:OnInspectorGUI() (at Assets/Editor/CarEditor.cs:155)
UnityEditor.DockArea:OnGUI()

Используйте вместо Destroy(), DestroyImmediate().

История помощи в создании страницы:

Administrator - 2014:06:19 16:32:59
Administrator (0%) - 2014:06:20 17:36:43
Комментарии