Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

remove child from scene swift

if let child = self.childNode(withName: "object") as? SKSpriteNode {
    child.removeFromParent()
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #child #scene #swift
ADD COMMENT
Topic
Name
1+4 =