When I try to post a LocationAnnotations of a subclass respect to the one defining variable sceneLocationView, by way of:
sceneLocationView.addLocationNodeWithConfirmedLocation(locationNode: bannerAnnotationLocation)
When I enter in:
public func addLocationNodeWithConfirmedLocation(locationNode: LocationNode) {
if locationNode.location == nil || locationNode.locationConfirmed == false {
return
}
updatePositionAndScaleOfLocationNode(locationNode: locationNode, initialSetup: true, animated: true)
locationNodes.append(locationNode)
print(sceneNode?.description ?? "nil")
self.sceneNode?.addChildNode(locationNode)
}
I find sceneNode to nil, like if the effect of the renderer is lost when subclassing. I also tried to create a new variable in the subclass also assigning SceneLocationView(), but sceneNode remains nil.
What to do to force it to assume a value?
1
0
82