Search Issue Tracker
Won't Fix
Votes
0
Found in
Issue ID
480835
Regression
No
Marshalling for UnityEngine.Vector3[] not supported
1) What happened
Marshalling for field of struct with type UnityEngine.Vector3[] is not
supported
2) How can we reproduce it using the example you attached
this c# code:
Vector3[] Corners = Path.corners;
FinalPos = Corners[Corners.Length - 1];
translates into this as3 code:
var $corners: CLIObjectArray = this.GOAPActionCheckLostEnemy$Path$.corners;
this.GOAPActionCheckLostEnemy$FinalPos$.cil2as::Assign($corners.elements[$corners.Length
- 1] as Vector3);
and throws error:
Error: Marshalling for field of struct with type UnityEngine.Vector3[]
is not supported (NavMeshPath.m_corners).
at UnityEngine::NavMeshPath/MarshalTo()
at com.unity::UnityNative$/Ext_MarshallTo()
at
com.unity::UnityNative$/NavMesh_CUSTOM_INTERNAL_CALL_CalculatePathInternal()
at
UnityEngine::NavMesh$/NavMesh_INTERNAL_CALL_CalculatePathInternal_Vector3Ref_Vector3Ref_Int32_NavMeshPath()
at
UnityEngine::NavMesh$/NavMesh_CalculatePathInternal_Vector3_Vector3_Int32_NavMeshPath()
at
UnityEngine::NavMesh$/NavMesh_CalculatePath_Vector3_Vector3_Int32_NavMeshPath()
at
global::GameZoneBase/GameZoneBase_GetCoverAgainst_AgentHuman_AgentHuman_Vector3_Single()[D:\Dev\4.0\ShadowGun-Flash\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameZoneBase.as:278]
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment