sneakyevil / IL2CPP_Resolver

A run-time API resolver for IL2CPP Unity.
https://sneakyevil.gitbook.io/il2cpp-resolver/
The Unlicense
323 stars 65 forks source link

Crash on GetTransform #44

Open gobboo opened 4 months ago

gobboo commented 4 months ago

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