
In the next lesson we will continue to discuss about this and add scripts and codes which will allow us to move the planets and perform the concepts of rotation and revolution in the form of animation. Now simply drag and drop the newly created material on to your Unity Background, you will see something like this,.You will have to repeat the above step of adding texture, six times, to add this texture to all the sides of the 6 Sided Skybox → Front, Back, Left, Right, Up and Down.Click on Select → Select Texture, a window pops up, select the universe background texture from the assets and close the window.Now select the material, and go to Inspector Pane, and choose, Shader drop down → Skybox → 6 Sided.Go to Project Window Pane, Assets menu → Material, name it background. To achieve this in our animation scene, we will have to use material.

The skybox fills the entire unity background with a texture in such a way that the entire background looks alike and similar.
Unity 3d animation download#
Download a texture or a high quality picture, like one below. Now, it's time to give the background a dark galaxy look.Adding the required textures to our spheres, will make the whole animation look more realistic, so if you haven't already added it, do it now.You can adjust the intensity of the Spotlight by modifying the intensity and bounce intensity attributes. Unity resamples these animations and generates new keyframes for each frame in the animation to avoid rotations that exceed the valid range of rotational quaternions.To bring these two lights into action, go to GameObject menu → Light → Spotlight.The other one will be the Area Light which will illuminate the whole scene, acting as the glow of the sun In this animation scene/model, we will have to add two types of lights, first the Spotlight for illuminating other objects from a single point, which in this case is the Sun.You can also find these assets in the Uniy 3D asset store like this one. You can browse for textures on the internet for Sun, Moon and Earth and apply them to our game objects.Keep their sizes different, with the Sun being the largest, then the sphere for Earth and then the Moon, To add spheres, go to GameObject menu → 3D object → Sphere and give them different(any) X, Y and Z scale value to arrange them as per requirement.(If you want to add other planets like mercury, venus, mars etc, you should.) Now, add three 3D spheres for Sun, Earth and Moon.Start new Project and give your project a name.

In this chapter, we will make a similar animated model of the Sun, the Earth and earth's Moon, along with some outer space scenery using an image along with a background music.įollow this step-by-step procedure to start developing this animation. The Moon, which is a natural satellite of planet Earth, revolves around it. Planet Earth is the 3rd planet and it revolves around the Sun. Also we have natural satellites revolving around most of these planets. Our solar system comprises of 8 main planets and 1 dwarf planet (Pluto). Alongside the game itself, Unity is also used to develop the animation (for storyline and in game action) for the game. We will learn how parent object and child objects are interrelated. In this tutorial we will be dealing with the animation/motion object. It uses 2D Animation to animate the main character.
Unity 3d animation how to#
In the last few tutorials we have learnt how to create game objects and how to arrange them to create simple games. Lost Crypt is a 2D side-scroller sample project that showcases all of Unity’s 2D tools. RigidBody Movement: velocity and AddForce().Prefab Instantiation with preset Properties.Write following script file add attach to your game object.

Check multiplier option as “Parameter” in the inspector window and link “Direction” parameter to the multiplier. Select state for which you want to play animation in reverse direction.Create a float parameter in animator controller panel.You can also reverse animation play in uni圓d using script. Change speed to “-1” in the inspector window.Open animator controller and select the state for which you want to reverse the animation play.Reverse Animation via Editor Inspector Window Let’s see how to do it via script and via editor inspector window. This scenario will be helpful if you have added animator component to your game object and using controller to play the animation.īasically, you need to change the speed from “1” to “-1” in order to change the direction of the animation. Reverse Animation Play with Animator Component I will reverse this animation later in this article. I have created a simple animation for the cube object. I will provide example to reverse animation for following scenarios that will be used to play animation. This article explains how to reverse animation play in unit圓d without creating a separate animation clip. If you are working with animation in unit圓d then you may have faced problem of playing given animation in the opposite direction.
