Skip to content

Crash on GetTransform #44

@gobboo

Description

@gobboo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions