Why GetArrayView is null in standalone?
I have a raycast code which works perfectly in Editor builds (DebugGame Editor and Development Editor) but crashes in modes without editor.
this is a raycast/hit check code fragment. Indices is correct in editor modes, but NULL in standalone modes, therefore crashes in next lines where I want access it.
What I need to set/add in C++ for getting it work in standalone modes?
asked Nov 05 '14 at 10:57 AM in Bug Reports
As BigaC mentions, we don't keep the index buffer CPU accessible outside the editor, to save memory. That is exactly what the bNeedsCPUAccess logic is doing. You should be able to change the logic though if you need access to the graphics triangles. Another option would be to ask the PhysX colliison mesh for the vertex (e.g. using PxMeshQuery::getTriangle).
answered Nov 25 '14 at 12:12 PM
Sorry for not getting back to you yesterday. I have entered a ticket for this issue (UE-5494), and a developer will be investigating further.
answered Nov 14 '14 at 09:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here