I am trying to access features of a featurelayer in a SceneView on click event. I have seen this example from Esri's documentation for ArcGIS API for JavaScript but this example is for a MapView. When I change MapView to SceneView, the graphic property of the object that is returned by view.hitTest is always null, even if I click on a feature.
I simply just replaced every MapView in the code to SceneView. The map loads fine, click event works (i.e. it returns x,y coordinates of the click).