Direct Action Game Object C # game development

Source: Internet
Author: User

Direct Action Game Object C # game development2.2.3manipulate game objects directly

in the Inspector It is too abstract to change the state of the game object in the game scene by setting properties, after all, the numbers are not intuitive enough. In fact, change the state of the game object, there is the most intuitive, the most simple method, that is, in the Scene View, directly manipulate the game object directly with the mouse game object C # game development This article selected from C # Game Development Quick Start College bully .

in Unity 4 buttons, 2-10 Ins Datetime= "2014-08-25t17:22" style= "width:0px; height:0px; Overflow:hidden; Position:absolute "> , respectively, to drag scene View, change the position of the game object, orientation and size directly manipulate game Objects C # game development This article is selected from the C # game Development QuickStart University bully.



Figure 2-10 Unity the upper-left corner of the 4 toolbar Buttons

to change the location of the game object, you can first use the mouse to select the second button on the toolbar, then click Scene the specified object in the view. a 3 -color axis appears on the selected object, and a small rectangle at the intersection of each axis,as shown in2-11 .

q using the mouse to click on the axis and drag, the game object will move toward the direction of the axis;

q using the mouse to click on small squares and drag, the game object will be composed of small squares of the two axes of the plane to move;



figure 2-11   to move the cube object appears on the axis

to change the orientation and size of the game object, you can select 3 , 4 button, then select the specified Game object, and finally the guide line, 2-12 is shown.



Figure 2-12 Change the orientation and size of the game object

This section explains how to Scene View, change Cube method of object state, which is applicable for all objects, and of course includes the current game scene Plane objects, 2-13 as shown in the direct manipulation game Object C # game development This article selected from the C # game development QuickStart University bully.



Figure 2-13 Change Plane the state of the object


Direct Action Game Object C # game development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.