I don't understand the description.
I implemented the feature in UnrealEngine with blueprints, but I don't know how to implement it in Unity. Here is my attempt in Unity, unfortunately it fails
Can you tell me the correct code steps?
Thanks!
That's exactly what I want. Thank you very much!
Hi, you just need to convert geometry to polygon and add it to the mesh layer. The code below works fine in Unity.
ArcGISPolygonBuilder pb = new ArcGISPolygonBuilder(ArcGISSpatialReference.WGS84());
pb.AddPoint(x1, y1);pb.AddPoint(x2, y2);pb.AddPoint(x3, y3);pb.AddPoint(x4, y4);
ArcGISMeshModification mm = new ArcGISMeshModification((ArcGISPolygon)pb.ToGeometry(), ArcGISMeshModificationType.Clip);
layer.MeshModifications.Add(mm);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.