Closed Shillersan closed 7 months ago
its little bit confusing of looping array, but you should use
Unity::CGameObject* m_pObject = m_pObjects->m_pValues->operator[](u);
or
Unity::CGameObject* m_pObject = m_pObjects->m_pValues->At(u);
its little bit confusing of looping array, but you should use
Unity::CGameObject* m_pObject = m_pObjects->m_pValues->operator[](u);
orUnity::CGameObject* m_pObject = m_pObjects->m_pValues->At(u);
Sorry if I am missing something but neither of these are defined.
Cannot resolve symbol 'operator[]'
Cannot resolve symbol 'At'
you have probably missing import header files. the function is defined at https://github.com/sneakyevil/IL2CPP_Resolver/blob/main/Unity/Structures/il2cppArray.hpp#L17-L25
you have probably missing import header files. the function is defined at https://github.com/sneakyevil/IL2CPP_Resolver/blob/main/Unity/Structures/il2cppArray.hpp#L17-L25
I see, I think you meant this: Unity::CGameObject* m_pObject = m_pObjects->At(u);
, which worked! Thank you.
Author
my fault.
I tried to use the basic example to loop over
GameObject
sI get an access violation error here:
std::string m_sObjectName = m_pObject->GetName()->ToString();