Parent inside Snapshot

Hi guys!

When a display object is inside a Snapshot the parent attribute of the child is always nil. Why is that? Bug?

Example:

local ss = display.newSnapshot(100, 100) local c = display.newCircle(0, 0, 10) ss.group:insert(c) print(c.parent) -- nil  

No that’s expected. The snapshot is conceptually a subclass of a rect object, not a group. Also, the objects “inside” the snapshot are not part of the live scene. They live offscreen so they technically do not have a parent.

No that’s expected. The snapshot is conceptually a subclass of a rect object, not a group. Also, the objects “inside” the snapshot are not part of the live scene. They live offscreen so they technically do not have a parent.