- Unity 2018 Cookbook(Third Edition)
- Matt Smith
- 46字
- 2025-02-23 18:56:40
The float HeightFromSample(float) method
Method HeightFromSample(float) does a simple calculation (sample value times public parameter multiplier), plus minimum value of two added to it. The value returned from the function is this result, limited to the maxHeight public parameter (via the Mathf.Clamp(...) method).