You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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 :)
The text was updated successfully, but these errors were encountered: