單項(xiàng)選擇題在Unity中,Canvas組件的渲染模式有()

A.2D和3D
B.Screen Space -Overlay、Screen Space -Camera、World Space
C.Orthographic和Perspective
D.Transparent和Opaque


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題在Unity中,如何檢測(cè)兩個(gè)物體是否正在接觸?()

A.Physics.CheckSphere ()
B.Physics.Raycast ()
C.Physics.SphereCast ()
D.Physics.CheckBox ()

2.單項(xiàng)選擇題在Unity中,如何在代碼中禁用一個(gè)物體的碰撞器?()

A.GetComponent<Collider>().enabled =false;
B.GetComponent<Collider>().isTrigger =false;
C.GetComponent<Collider>().material =null;
D.GetComponent<Collider>().size =new Vector3(0,0,0);

3.單項(xiàng)選擇題在Unity中,如何在代碼中啟用一個(gè)物體的碰撞器?()

A.GetComponent<Collider>().enabled =true;
B.GetComponent<Collider>().isTrigger =true;
C.GetComponent<Collider>().material =new PhysicMaterial ();
D.GetComponent<Collider>().size =new Vector3(1,1,1);

4.單項(xiàng)選擇題在Unity中,如何檢測(cè)一個(gè)物體是否正在與另一個(gè)物體發(fā)生碰撞?()

A.OnCollisionEnter (Collider other)
B.OnTriggerEnter (Collider other)
C.OnCollisionStay (Collider other)
D.OnTriggerStay (Collider other)

5.單項(xiàng)選擇題在Unity中,如何檢測(cè)鼠標(biāo)左鍵是否被按下并拖動(dòng)?()

A.Input.GetMouseButton (0)&&Input.GetMouseButtonUp (0)
B.Input.GetMouseButton (0)&&Input.GetMouseButtonDown (0)
C.Input.GetMouseButton (0)&&!Input.GetMouseButtonUp (0)
D.Input.GetMouseButton (0)&&!Input.GetMouseButtonDown (0)