[Unity3D practice] Swing helicopter development practice (2) and unity3d practice
[Unity3D practice] Swing helicopter development practice (2)
Let me show you the second practice of swing helicopter development today
1. drag the title_00 image in the Sprites folder to the Hierarchy panel, select the title_00 image that has been dragged, click the Window option in the option bar above Unity3D, and select Animation, in this case, we will find a tool panel,
2. click the Create button on the right. The file storage path option is displayed. in Assets, Create a folder named [Animation] to enter the folder, name this Animation BoardIdle, save it, return to the [Animation] Panel, click [Add Property], select [Sprite Renderer], and click the plus sign on the Right of Sprite, change Samples in the panel from 60 to 12, delete the last frame of the number of animation frames on the right, and drag the title_01 and other images in the Sprites folder to the number of frames panel,
3. Close the [Animation] Panel, create a GameObject named "Board" in the [Hierarchy] Panel, Reset it, and drag title_00 into its child objects.
4. similarly, bear_0_0_0 and wheels_0 are also the same as above. The animation is named BodyIdle and WheelIdle, And the GameObject created in the Hierarchy panel is named Body and Wheel, then create a folder named Prefabs, which loads the premade object and then drag the above three objects into the folder.
5. Some of our pre-fabricated bodies have been completed, and then we save the current scenario. Then we will enter the next learning stage!