Not sure if I would class it as a bug or not, but when running GetTransform on an object that doesn't have a Transform ( for example RectTransform ) game crashes, was hoping it'd return a nullptr or something is all.
I tried to remedy this with
Unity::CComponent* component = pickup->GetComponent("UnityEngine.Transform");
However this seems to return a nullptr even if the object does have a transform :)
Not sure if I would class it as a bug or not, but when running GetTransform on an object that doesn't have a Transform ( for example RectTransform ) game crashes, was hoping it'd return a nullptr or something is all.
I tried to remedy this with
Unity::CComponent* component = pickup->GetComponent("UnityEngine.Transform");
However this seems to return a nullptr even if the object does have a transform :)