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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Add comment