Contents

setScale(_:relativeTo:)

Sets the scale factor of the entity relative to the given reference entity.

Declaration

@MainActor @preconcurrency func setScale(_ scale: SIMD3<Float>, relativeTo referenceEntity: Entity?)

Parameters

  • scale:

    A new scale factor, relative to referenceEntity.

  • referenceEntity:

    The entity that defines a frame of reference. Set this to nil to indicate world space.

See Also

Scaling an entity