scale(relativeTo:)
Gets the scale of an entity relative to the given entity.
Declaration
@MainActor @preconcurrency func scale(relativeTo referenceEntity: Entity?) -> SIMD3<Float>Parameters
- referenceEntity:
The entity that defines a frame of reference. Set this to
nilto indicate world space.