exdev / ex2d-dev

2D framework and pipeline for Unity3D
ex-dev.com/ex2d
GNU General Public License v3.0
6 stars 3 forks source link

2D Scene Editor激活状态下,在Project View中选中包括sprite component的prefab会导致大量报错 #34

Open nantas opened 11 years ago

nantas commented 11 years ago

NullReferenceException: Object reference not set to an instance of an object exSprite.UpdateBufferSize () (at Assets/ex2D/Runtime/Components/exSprite.cs:320) exSprite.GetVertices (Space _space) (at Assets/ex2D/Runtime/Components/exSprite.cs:266) exLayeredSprite.GetWorldVertices () (at Assets/ex2D/Runtime/Components/Internal/exLayeredSprite.cs:243) exSpriteBaseInspector.DrawBoundingRect (.exSpriteBase _node, Boolean ignoreZ) (at Assets/ex2D/Editor/Inspector/exSpriteBaseInspector.cs:191) exSceneEditor.DrawScene (Rect _rect) (at Assets/ex2D/Editor/exSceneEditor.cs:764) exSceneEditor.SceneViewField (Rect _rect) (at Assets/ex2D/Editor/exSceneEditor.cs:554) exSceneEditor.Layout_SceneViewField (Int32 _width, Int32 _height) (at Assets/ex2D/Editor/exSceneEditor.cs:537) exSceneEditor.OnGUI () (at Assets/ex2D/Editor/exSceneEditor.cs:186) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Matrix stack full depth reached UnityEngine.GL:PushMatrix() exSceneEditor:DrawScene(Rect) (at Assets/ex2D/Editor/exSceneEditor.cs:710) exSceneEditor:SceneViewField(Rect) (at Assets/ex2D/Editor/exSceneEditor.cs:554) exSceneEditor:Layout_SceneViewField(Int32, Int32) (at Assets/ex2D/Editor/exSceneEditor.cs:537) exSceneEditor:OnGUI() (at Assets/ex2D/Editor/exSceneEditor.cs:186) UnityEditor.DockArea:OnGUI()

nantas commented 11 years ago

相关问题 #26

jareguo commented 11 years ago

使用最新dev版无法重现,但是scene editor里面会画出一个空boundingbox,建议@jwu不对project中选中的sprite进行渲染。