Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

Unity 2020/2021 Crash while selecting entity game object (Windows)

Open zendorx opened this issue 3 years ago • 3 comments

https://user-images.githubusercontent.com/909905/145678347-e79df163-5174-4734-b648-9dc042074f10.mp4

zendorx avatar Dec 11 '21 13:12 zendorx

same for 2021 unity

zendorx avatar Dec 11 '21 13:12 zendorx

found the reason. It because component contains int2 property. And workaround here?

zendorx avatar Dec 11 '21 14:12 zendorx

Hi, a custom TypeDrawer for that type might help, example https://github.com/sschmid/Entitas-CSharp/blob/master/Addons/Entitas.VisualDebugging.Unity.Editor/Entitas.VisualDebugging.Unity.Editor/Entity/TypeDrawer/Vector2TypeDrawer.cs

Save them in an Editor folder.

Maybe sth goes wrong close to here https://github.com/sschmid/Entitas-CSharp/blob/master/Addons/Entitas.VisualDebugging.Unity.Editor/Entitas.VisualDebugging.Unity.Editor/Entity/Entity/EntityDrawer.cs#L301-L328

sschmid avatar Dec 12 '21 13:12 sschmid

@zendorx I hope that helped. Feel free to reopen if you still have issues

sschmid avatar Aug 25 '22 21:08 sschmid