unity 3d
Jun 8

??????Unity3D???

admin , 16:42 , unity 3d , 评论(0) , 引用(0) , 阅读(25996) , Via 本站原创

??????Unity3D???


???????????IIS?????????????????

???????IIS???MIME???????????.unity3d?MIME???application/octet-stream

Tags: ,
Apr 11

Overview: Common Operations ???????

    ??????????????????Transform?/?Rigidbody?????????????????Transform?Rigidbody???????????????????????Y????5?????????

function Update(){

     transfom.Rotate(0,5,0);

}

?????????????????????

function Update(){

     transfom.Translate(0,0,2);

}


Overview: Keeping Track of Time ???????

    Time????????????????deltaTime?????????????Update?FixedUpdate?????????????Update?????FixedUpdate?????

    ???????????????????????????????????????????????

function Update() {
      transform.Rotate( 0, 5 * Time.deltaTime, 0);
}

?????

function Update() {
      transform.Translate(0, 0, 2 * Time.deltaTime);
}


????????????????????Time.deltaTime???????Time.deltaTime????????????????10?/?????????????10?/???????????????????????????????????????10?/??

???????????????????????????????????2??/?????????

function Update(){

      light.range+=2.0*Time.deltaTime;

}

???????????????????Time.deltaTime????????????????


Overview: Accessing Other Components ?????????

    ?????????????Renderer??????????????????Camera?????????????????????????????????

?????????????????

   ??                  ?????

Transform                transform

Rigidbody                rigidbody

Renderer                 renderer

Camera                   camera(only on camera objects)

Light                    light(only on light objects)

Animation                animation

Collider                 collider

…???

    ????????????????????Component,Behaviour?MonoBehaciour????????????????????????????????null?

    ??????????????????????GetComponent???

transform.Translate(0, 1, 0);
// ???
GetComponent(Transform).Translate(0, 1, 0);

    ??transform?Transform????????????????????????????(??)??????????????????????

??????????????GetComponent?????????????????????????????????????????????DoSomething?????OtherScript????OtherScript??????????????????????

// ?????????OtherScript??
    // ????DoSomething
function Update () {
otherScript = GetComponent(OtherScript);
otherScript.DoSomething();
}

Tags:
Apr 11

Unity3D ????? Mono ??????????? PC ?MAC ? Android ?IOS ??????? 3.0 ???????? MonoDevelop ????????????? MonoDevelop ????????????????????????????????????????

  1. MonoDevelop ???????
    1. ????? Unity3D ?????? MonoDevelop ?????? Unity3D ?????? MonoDevelop ?MonoDevelop ?????????? Unity3D ???????
    2. ?? MonoDevelop ??? MonoDevelop ?????????? .Net 3.5 ?? ???? (Tools –> Preference) ???????????????????????? ?Unity –> Debugger? ?????? Editor Location ??????? ???? Launch Unity Automatically ? Build Project in MonoDevelop ?? OK ?????
  2. Unity Editor ????????? MonoDevelop ?
    1. ?? Unity ? ?? Edit –> Preference ?? Unity ?????
    2. ? General ???????? MonoDevelop?
  3. ?????????
    1. ? Unity Editor ? Project ????????? ???????? Sync MonoDevelop Project? ????? MonoDevelop ?????????
    2. ?? Unity Editor ?
    3. ? MonoDevelop ??????????????????? F5 ??????????? Unity Editor ??? Play ?????????????

??????????????

Mono Develop ??
Unity ??
????
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]