Search Issue Tracker
Fixed in 5.2.0
Votes
1
Found in
4.3.0f4
Issue ID
576941
Regression
No
SmoothDamp example in the documentation is incorrect
Correct example:
Current SmoothDamp Documentation:
<file://localhost/Applications/Unity/Unity.app/Contents/Documentation/html/en/ScriptReference/Mathf.SmoothDamp.html>
public Transform <Transform.html> target;
public float smoothTime = 0.3F;
private float yVelocity = 0.0F;
void Update() {
float newPosition = Mathf.SmoothDamp
<Mathf.SmoothDamp.html>(transform.position.y, target.position.y, ref
yVelocity, smoothTime);
transform.position = new Vector3
<Vector3.html>(transform.position.x, newPosition,
transform.position.z);
}
(also full script attached in a user response)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Create New Tile Palette dropdown text is not centered and text is cut off
- Volume numeric fields allows adding unlimited number in numeric field which breaks UI, no character limit
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
Add comment