Sorry for the vague, barely script related question, however i needed a few scripting (and general) advice on how to make an optimized game and what are the traps to avoid. Anything helpful is greatly appreciated :).
When drinking, don’t park. Accidents cause people.
When importing a rigged model, don’t use the rig the animator uses with the controls ect. Each node in (maya at least) the file becomes a game object inside of unity. Gets very confusing and very clustered. Instead transfer the animators animation to a scene with only the skeleton and mesh.
I am a technical artist by trade, and this saved us from having to dumb down our characters. We were getting 20 fps, re imported with just skeleton and mesh got over 500+ again.
Agree with Dman. The best optimization you will ever get is don’t think about it. The more you do the more optimized, the less productive codes get produced. Unless Unity is lagging. And if you are a newbie, all the optimization will only confuse you. You want speed. Use raw machine codes then. (Jokes intended). There’s a price to pay for speed but what, production?