判斷題public class ExampleClass:MonoBehaviour{public Texture[]textures;public floatchangeInterval=0.33F;public Renderer rend;void Start(){rend=GetComponent();}voidUpdate(){if(textures.Length==0)return;int index=Mathf.FloorToInt(Time.time/changeInterval);index=index%textures.Length;rend.material.mainTexture=textures[index];}}以上代碼的作用根據(jù)指定的時間間隔切換游戲?qū)ο蟮募y理。()
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題使用unity3D引擎過程中,游戲中如何獲取主相機(jī)。()
A.Camera.aspect
B.Camera.main
C.Camera.fieldOfView
D.Camera.farClipPlane
2.單項選擇題public class ExampleClass:MonoBehaviour{Camera cam;voidStart(){cam.cullingMask=1<<0;}}以上代碼的作用,是把相機(jī)能夠渲染的層級調(diào)整為()。
A.1層
B.0層
C.2層
D.3層