- Home /
Futuristic UI elements
Hello, I'm new to unity and the whole game development!
In my game which is an FPS, i need to display HUD elements and gadgets like iron man over the scene. to make it feel like the player is wearing a visor which has gadgets. i have these elements done in adobe after effect. these elements look like this: ofc these elements are animated! I need to know what is the best way and how to display it?
Answer by xxmariofer · Jan 31, 2019 at 07:54 PM
Videos are almost never used in ui elements in game programming, if you have the frames it is easier to drag and drop all of them at the same time for creating an animation (or using the animation window) and create a ui image that will have that animation. but unity have a component called videoplayer that you can use in case it must be dont with videos.
if you are starting from zero i would suggest checking some tutorials on that area https://unity3d.com/es/learn/tutorials/topics/user-interface-ui/ui-image
unity animation window, probably you mean that by sprite animation since thats the main case atleast when you are starting. All the UI should be displayed in the canvas and in the canvas there are no sprites, but there are Images, that basically do the exact same function. With the animation window you can animate Images, rather than animating the Sprite.sprite component, you animate the Image.image.
thnks xxmariofer, is there a nother way to animate without using image frames. because from what i understood, unity will load all images (ie: frames) and if these images lets say 300 frames. then i think there will be a performance issue?! im not sure, if this is correct.