Add multiple TCastleScenes to TCastleViewport, click to trigger how to determine which TCastleScene in TCastleViewport. Is there any function to determine? I need to do some event processing for specific TCastleScenes
Use MyViewport.TransformUnderMouse
.
See examples/viewport_and_scenes/detect_scene_hit README for more possibilities.
See also sample from GitHub - castle-engine/conference-pascalcafe2024: Sample application to go with Pascal Cafe 2024 Conference slides .