IL2CPP_Resolver icon indicating copy to clipboard operation
IL2CPP_Resolver copied to clipboard

Crash on GetTransform

Open gobboo opened this issue 1 year ago • 1 comments

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 :)

gobboo avatar Feb 28 '24 15:02 gobboo

Same

FroggerHH avatar Feb 28 '25 23:02 FroggerHH