Hi! I was just wondering wich method is cheaper in terms of performance. I have a roof fan that is turned on all the time and its animated using a rotation property inside a update call, but maybe animating the fan with keyframes inside my modeling program and exporting the fbx with this animation would be better?
Does anyone knows wich way is better for performance?
For simple rotation, definitely just write a script. Animations themselves are backed by far more complicated scripts that deal with interpolation types, beziers all kinds of things, as well as reading in the animation on top of it. Scripting rotation is going to be the fastest way to do it, but I wouldn’t worry about either way, any performance will be marginal, unless you have hundreds of these fans. Do what is easiest and simplest for you