- Home /
What is the difference between WrapModes Once and Clamp ?
it seems Clamp and Once do the exact same thing.
I also found the enum script file where both values where set to = 1
is there / was there ever a difference ? is there any reason to keep the old/obsolete one around ? is it safe for our game project to purge it for all "Once" or all "clamps"? Which one is the "true" one?
Answer by Cyclops · Mar 12, 2010 at 05:13 PM
I suspect Clamp is now obsolete, since I don't even see it in the Scripting page. It shows Once and ClampForever, but no Clamp:
Answer by equalsequals · Feb 18, 2010 at 12:57 AM
I believe Clamp Forever holds the last frame for the duration of the component's execution. This would mean that while the component is executing (enabled == true) the animation's isAnimating property will return true.
In contrast, Once will cease animating on completing the clip and once it completes its isAnimating property will return false, even though the visual appearance is the same.
Hope that made sense,
==
It does make sense, but I am referring to Wrap$$anonymous$$ode.Clamp and not Wrap$$anonymous$$ode.ClampForever.
Ohhhh, I am sorry. I must have misread. To tell you the truth I see no difference. I never use Clamp, only Once or ClampForever for the "hold position" scenario.
Your answer
Follow this Question
Related Questions
Adding animation clips via script 2 Answers
Can I make animations snap to a frame? 1 Answer
How to select an animation clip by index number? 7 Answers
Can the animation editor create local rotational data? 3 Answers
what is going on 3 Answers