GameDev.[Unity]/Tips(2)
-
[UnityEngine] CustomEditor for inheritance
Unity's custom editor dose not support member fields of parent type. So, to show member fields of inherited class on inspector view, I also inherited custom editor for parent class's custom editor. Here some test classes below, I would like to draw a ObjectField that would refers DummyData on [Child] component's inspector view. First, make a Editor for [Parent], define static generic method draw..
2022.10.11 -
Unity DOTS - how to check entity is null.
Normally , We check entity is null or not with EntityManager. Unity documents and also many of developers explaine like this way Accessing to entityManager to check if entity is null. So when you want to check all entities are null, then you have to access entityManager many times in for loop. However, when you take a look the Entity class, Entity includes Null static variable. So, at first, I d..
2021.08.07