TrackLayerCollectionSetCurrentTargetDepths Method

Set the current and target depths for the layer using requirements from the selected tool and minimum / maximum required depths.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
private bool SetCurrentTargetDepths(
	TrackLayerItem layer,
	MinMaxItem minMax,
	TrackToolItem tool,
	float previousDepth = 0f
)

Parameters

layer  TrackLayerItem
Reference to the layer upon which the values will be set.
minMax  MinMaxItem
Minimum and maximum depths requested on the layer.
tool  TrackToolItem
The active tool assigned to the layer.
previousDepth  Single  (Optional)
The previous depth already reached.

Return Value

Boolean
True if some goal has been set. Otherwise, false.

Remarks

This value is set inline on the caller's layer.

See Also