Scales a prefab based on the specified scaling mode.
This method is used to scale a prefab when instantiating it as an anchor with a volume. If the scaling mode is UniformScaling, it scales the prefab uniformly based on the smallest axis. If the scaling mode is UniformXZScale, it scales the prefab uniformly on the X and Z axes. If the scaling mode is NoScaling, it returns a unit vector. If the scaling mode is Custom, it uses the provided custom scaling logic. If the scaling mode is Stretch, it returns the anchor's original local scale.
ParameterslocalScaleThe local scale of the prefab.
scalingModeThe scaling mode to use. See AnchorPrefabSpawner.ScalingMode.
ReturnsThe scaled local scale of the prefab.