Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNIOSControlMBS control.

SCNIOSControlMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
The control is about to close.

SCNIOSControlMBS.GotFocus

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
The control itself got focus.

This only fires if the control itself got focus and not a sub control.

SCNIOSControlMBS.LostFocus

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
The control lost focus.

This only fires if the control itself lost focus and not a sub control.

SCNIOSControlMBS.Open

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
The control is about to was created and you can initialize it.

SCNIOSControlMBS.rendererDidApplyAnimations(time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Tells the control to perform any updates that need to occur after actions and animations are evaluated.

time: The current system time, in seconds. Use this parameter for any time-based elements of your game logic.

SceneKit calls this method exactly once per frame, so long as the SCNViewMBS object (or other SCNSceneRenderer object) displaying the scene is not paused.

Implement this method to add game logic to the rendering loop. Any changes you make to the scene graph during this method are immediately reflected in the displayed scene. That is, SceneKit immediately updates the hierarchy of presentation nodes it uses to render the scene (instead of using the SCNTransactionMBS class to “batch” your changes).

SCNIOSControlMBS.rendererDidApplyConstraints(time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Invoked on the control once the scene renderer did apply the constraints.

time The time at which the constraints were simulated.

All modifications done within this method don't go through the transaction model, they are directly applied on the presentation tree.

SCNIOSControlMBS.rendererDidRenderScene(scene as SCNSceneMBS, time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Tells the control that the renderer has cleared the viewport and is about to render the scene.

scene: The SCNSceneMBS object to be rendered.
time: The current system time, in seconds. If your custom rendering involves animation, use this parameter to compute your own animation state.

Implement this event to perform custom drawing before SceneKit renders a scene—for example, to draw backdrop content underneath SceneKit content. You should only execute Metal or OpenGL drawing commands (and any setup required to perform them) in this event—the results of modifying SceneKit objects during this event are undefined.

To render using Metal, use the renderer parameter to retrieve the scene renderer’s currentRenderCommandEncoder object and encode your own drawing commands. If you need to reference other Metal state, see the properties listed in SCNSceneRenderer.
To render using OpenGL, simply call the relevant OpenGL drawing commands—SceneKit automatically makes its OpenGL context the current context before calling this event. If you need to reference the OpenGL context being rendered into, examine the context property of the renderer parameter.

You must draw using the appropriate graphics technology for the view currently being rendered. Use the renderingAPI property of the renderer object to determine whether Metal or OpenGL is in use.

SCNIOSControlMBS.rendererDidSimulatePhysics(time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Tells the control to perform any updates that need to occur after physics simulations are performed.

time: The current system time, in seconds. Use this parameter for any time-based elements of your game logic.

SceneKit calls this event exactly once per frame, so long as the SCNViewMBS object (or other SCNSceneRenderer object) displaying the scene is not paused.

Implement this event to add game logic to the rendering loop. Any changes you make to the scene graph during this method are immediately reflected in the displayed scene. That is, SceneKit immediately updates the hierarchy of presentation nodes it uses to render the scene (instead of using the SCNTransactionMBS class to “batch” your changes).

This event is the last opportunity SceneKit provides for you to change the scene graph before rendering.

SCNIOSControlMBS.rendererUpdate(time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Tells the control to perform any updates that need to occur before actions, animations, and physics are evaluated.

time: The current system time, in seconds. Use this parameter for any time-based elements of your game logic.

SceneKit calls this method exactly once per frame, so long as the SCNViewMBS object (or other SCNSceneRenderer object) displaying the scene is not paused.

Implement this event to add game logic to the rendering loop. Any changes you make to the scene graph during this method are immediately reflected in the displayed scene. That is, SceneKit immediately updates the hierarchy of presentation nodes it uses to render the scene (instead of using the SCNTransactionMBS class to “batch” your changes).

SCNIOSControlMBS.rendererWillRenderScene(scene as SCNSceneMBS, time as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 21.0 ❌ No ❌ No ❌ No ✅ Yes
Tells the control that the renderer has rendered the scene.

scene: The scene object that was rendered.
time: The current system time, in seconds. If your custom rendering involves animation, use this parameter to compute your own animation state.

Implement this method to perform custom drawing after SceneKit has rendered a scene—for example, to draw overlay content on top of SceneKit content. You should only execute Metal or OpenGL drawing commands (and any setup required to perform them) in this method—the results of modifying SceneKit objects in this method are undefined.

  • To render using Metal, use the renderer parameter to retrieve the scene renderer’s currentRenderCommandEncoder object and encode your own drawing commands. If you need to reference other Metal state, see the properties listed in SCNSceneRenderer.
  • To render using OpenGL, simply call the relevant OpenGL drawing commands—SceneKit automatically makes its OpenGL context the current context before calling this method. If you need to reference the OpenGL context being rendered into, examine the context property of the renderer parameter.

You must draw using the appropriate graphics technology for the view currently being rendered. Use the renderingAPI property of the renderer object to determine whether Metal or OpenGL is in use.

SCNIOSControlMBS.touchesBegan(e as NSEventMBS, touches() as NSTouchMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 23.5 ❌ No ❌ No ❌ No ✅ Yes
Tells this object that one or more new touches occurred in a view or window.

e: The event to which the touches belong.

UIKit calls this method when a new touch is detected in a view or window. Many UIKit classes override this method and use it to handle the corresponding touch events. The default implementation of this method forwards the message up the responder chain.

Return true if you handled it as otherwise we pass it on.

SCNIOSControlMBS.touchesCancelled(e as NSEventMBS, touches() as NSTouchMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 23.5 ❌ No ❌ No ❌ No ✅ Yes
Tells the responder when a system event (such as a system alert) cancels a touch sequence.

e: The event to which the touches belong.

UIKit calls this method when it receives a system interruption requiring cancellation of the touch sequence. An interruption is anything that causes the application to become inactive or causes the view handling the touch events to be removed from its window. Your implementation of this method should clean up any state associated with handling the touch sequence.

Return true if you handled it as otherwise we pass it on.

SCNIOSControlMBS.touchesEnded(e as NSEventMBS, touches() as NSTouchMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 23.5 ❌ No ❌ No ❌ No ✅ Yes
Tells the responder when one or more fingers are raised from a view or window.

e: The event to which the touches belong.

UIKit calls this method when a finger or Apple Pencil is no longer touching the screen. Many UIKit classes override this method and use it to clean up state involved in the handling of the corresponding touch events. The default implementation of this method forwards the message up the responder chain.

Return true if you handled it as otherwise we pass it on.

SCNIOSControlMBS.touchesMoved(e as NSEventMBS, touches() as NSTouchMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
event SceneKit MBS Mac64bit Plugin 23.5 ❌ No ❌ No ❌ No ✅ Yes
Tells the responder when one or more touches associated with an event changed.

e: The event to which the touches belong.

UIKit calls this method when the location or force of a touch changes. Many UIKit classes override this method and use it to handle the corresponding touch events. The default implementation of this method forwards the message up the responder chain.

Return true if you handled it as otherwise we pass it on.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...