Sprite-Bounding Rect

Hello fellow developers. Is there a way to "hide" the bounding rectangle of your sprites, when they've been hard-coded into a project and not loaded directly through the .sks? I am hoping there is a way to declare this globally before didmovetoview and not for each individual sprite so the code doesn't become too clunky. Any thoughts would be greatly appreciated.

Thank you, Sharky

Replies

I don't understand what you mean by hard coded but you usually hide the physics bodies representations (the blue boxes) by calling view.showsPhysics = false


where view is an SKScene


in the game template it's on the GameViewController.swift file.