Instance Method

setScale(_:relativeTo:)

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

Declaration

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

var scale: SIMD3<Float>

The scale of the entity relative to its parent.

func scale(relativeTo: Entity?) -> SIMD3<Float>

Gets the scale of an entity relative to the given entity.