Hello,
I hope someone can help me with this.
I'm a beginner, but I managed to retrieve the object ID using a raycast from an ArcGIS3DObjectSceneLayer. See script below.
But is it possible to use this featureid/objectid attribute to request information about the feature and display it in a .text? For example the Name.
RaycastHit hit;
if (Physics.Raycast(ray, out hit))
{
var arcGISRaycastHit = arcGISMapComponent.GetArcGISRaycastHit(hit);
var layer = arcGISRaycastHit.layer;
var featureId = arcGISRaycastHit.featureId;
if (layer != null && featureId != -1)
{
featureText.text = featureId.ToString();
}
}
}
}