Instance Property

scene

The scene that owns the entity.

Declaration

var scene: Scene? { get }

Discussion

An entity belongs to a scene if the entity is part of a hierarchy that’s rooted in the scene’s anchors collection.

The value of the property is nil if the entity isn’t currently attached to any scene.

See Also

Identifying an Entity

var name: String

The name of the entity.

func findEntity(named: String) -> Entity?

Recursively searches all descendant entities for one with the given name.

var id: ObjectIdentifier

The stable identity of the entity associated with self.

var id: UInt64

The stable identity of the entity.

typealias Entity.ID

A type of unique identifier used for an entity.