FitAsset

Summary

This behaviour allows you to specify 3 points in which to stretch an asset by. The asset will be centered on the “Origin” point and then stretched along the “Right” and “Back” points.

The 3 points can be specified as either world co-ordinate points or actual assets in the scene.

Parameters

OriginAsset

Type: Effect Paths Default: None

The asset that is located at the origin point.

OriginOffset

Type: Vector3 Default: 0,0,0

The offset value to position the Origin point of the asset. When an OriginAsset is specified, this value will be considered as local co-ordinates to the OriginAsset. If no OriginAsset is specified, the value will be treated as world co-ordinates.

RightAsset

Type: Effect Paths Default: None

The asset that is located at the right point.

RightOffset

Type: Vector3 Default: 0,0,0

The offset value to position the Right point of the asset. When a RightAsset is specified, this value will be considered as local co-ordinates to the RightAsset. If no RightAsset is specified, the value will be treated as world co-ordinates.

BackAsset

Type: Effect Paths Default: None

The asset that is located at the back point.

BackOffset

Type: Vector3 Default: 0,0,0

The offset value to position the Back point of the asset. When a BackAsset is specified, this value will be considered as local co-ordinates to the BackAsset. If no BackAsset is specified, the value will be treated as world co-ordinates.

Height

Type: Float Default: 5

The amount of height to stretch the asset upwards.

AlwaysUpdate

Type: Boolean Default: False

If true, the asset will continue to be stretched even after any asset positions change. If false, the asset will be fixed to the positions specified at the start of running the behaviour.

Examples

See Also