I have: GameViewController, where I setup a 3D scene and a function "fire". Then I have another SKScene, which is overlaid, so I cannot click the nodes on the 3D scene. On the SKScene I have a SKSpriteNode, "fireNode". After click of this fireNode I want to call a "fire "function in GameViewCOntroller. How can I do this?
How to call a GameViewController function form SKScene which is overlaid
40 views Asked by mptaurus At
1
There are 1 answers
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in 3D
- Issues with a rotation gizmo and sign flips when converting back to euler angles
- coded one, but renderer renders two 3D models in three.js
- WorldToScreen function
- Sweep shape along 3D path in Python
- How to add another panel or window to the open3d.visualization.O3DVisualizer class? (In python open3d)
- How to estimate the memory size of a binary voxelized geometry?
- LibGDX Normal Textures Not Showing Up in 3D (Blender) Model Java
- A way to warp an image based on a map
- 3D surface won't show data on plotly
- Creating 3D python data from index sums of 2D data
- 3D graph in Rstudio (time vs intensity vs coefficient)
- Combining multiple plots with mayavi
- JavaFX 3D API does not work on all Android deivces
- Manual retargeting - How to compute target pose bone positions correctly?
- How do I dynamically change vertex colors using Direct3d 12 and Visual C++?
Related Questions in SKSCENE
- What is the best way to evenly spread a longitudinal line of SKSpriteNodes across the SKScene width?
- How to transitions between scenes using SpriteView in SwiftUI?
- How to determine size of SCNPlane to cover entire SKScene
- Frame drop when presenting a new scene in SpriteKit
- AdMob Banner Ad won't display in Swift SpriteKit game
- SKScene's update function appears to not work
- Neither adding a SKShapeNode nor adding a SKLabelNode to a SKScene appears to work?
- Adding a Mac trackpad scroll gesture to a SKScene
- How do I eliminate SKScene.scaleMode = .aspectFit cutting off on all 4 sides with rotation?
- My SKScene will show sized correctly in the Simulator, before rotation, but not after?
- How to create a 'snow that's pile up' effect in SwiftUI
- SpriteKit simulation step stutter
- How to detect two simultaneous touches in xcode spritekit?
- Listening for click/touch events in SKScene on MacOS in a SwiftUI SpriteView
- How to pass in parameters to SKScene Class and then present the scene, within SpriteKit
Related Questions in SCNSCENE
- Swift | RoomBuilder's RoomCaptureView export USDZ with blocks instead furniture
- How to screenshot a SCNScene or SceneView?
- How to move SCNNode within a SCNView using UITapGestureRecognizer?
- Swift-SceneKit-Can not load '.scn' file from 'art.scnassets'
- Placing SCNScene on the other SCNScene
- Finding a better method to identify points exist "inside" of a cube in swift
- SCNFloor goes unvisible randomly on SceneKit
- Changing scene view lighting model programmatically
- Get an URL from SCNScene
- Remove complete .scn instead of individual nodes Swift ARKit
- How to share .scn file as .usdz file?
- ARKit Project: Unexpectedly found nil while unwrapping an Optional value
- SwiftUI – Setting SceneView background to video
- arkit showPhysicsShapes larger than node
- How to scale SCNScene?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If your GameViewController is rootViewController I would go with something like this:
Edit:
Or you can just post notification with Notification Center to your view controller.