How to check if a object is a instance of a scene?

:bust_in_silhouette: Reply From: Xrayez

From docs:

When a scene is instanced from a file, its topmost node contains the filename from which it was loaded.

So one of the ways would be:

func is_instanced_from_scene(p_node):
    if not p_node.filename.empty():
        return true
    return false

It doesn’t answer whether a node is an instance of a particular scene, though. See other answers.