How to focus a sprite in SKView?

Hello

I dont't know how to set focus on a spite in a SKScene/SKView game, neither can I move focus among sprites.

My environement is running the game on TV simulator with TV remote, and without controller.


Thank you in advance.


Shen

The focus system only supports UIViews.


If there are enhancements to SpriteKit and the focus system that you'd like to see in the future, please file a bug report at https://bugreport.apple.com/

Thank you for replying.


I notice that the SKView is inherited from UIView, therefore it should support focus. Right?

You could focus on the overall SKView, but SKView is just a container for all of your SKNodes. You won't be able to focus on the individual SKNodes within your scene, just the top-level SKView container.

Thank you again.


1. In fact, I failed to set focus on the SKView either. I notice the fouce is on a UIButton. The UIButton and SKView are both deployed within a same UIView.


2. Well, my real need is to enable users to select sprites. Do you have any sugguestion on how to fullfil this target? Thank you!

done, but the more, the faster it happens (22739949)

It seems you could manage the internal fucus of a custom subclass of SKView, and call the renew/refresh focus method when it needs to change. Manually managing how to show the focus.


That or handle the low level user interface actions.


Work … not the "10 minutes to port" as suggested in the 'Hey Siri' event.

How to focus a sprite in SKView?
 
 
Q