UNITY API
来源:互联网 发布:c语言层次遍历二叉树 编辑:程序博客网 时间:2024/05/20 21:43
using System.Collections;
public class _01event : MonoBehaviour {
// Use this for initialization
//熟悉下列事件在什么情况下运行
void Start () {
Debug.Log("Start");
}
//最先执行先于Start,和Start都是自动执行
void Awake()
{
Debug.Log("Awake");
}
//该程序和uppdate一样 ,只是不受电脑性能影响
void FixedUpdate()
{
Debug.Log("FixedUpdate");
}
// Update is called once per frame
void Update () {
Debug.Log("Update");
}
//游戏暂停是执行
void OnApplicationPause()
{
Debug.Log("OnApplicationPause");
}
//程序或对象禁用时执行
void OnDisable()
{
Debug.Log("OnDisable");
}
//退出时使用
void OnApplicationQuit()
{
Debug.Log("OnApplicationQuit");
}
//
void Reset()
{
Debug.Log("Reset");
}
//程序或对象禁用时执行
void OnDestroy()
{
Debug.Log("OnDestroy");
}
}
using UnityEngine;
using System.Collections;
public class API02Time : MonoBehaviour {
// Use this for initialization
void Start () {
Debug.Log("Time.deltaTime:" + Time.deltaTime);
Debug.Log("Time.fixedDeltaTime:" + Time.fixedDeltaTime);
Debug.Log("Time.fixedTime:" + Time.fixedTime);
Debug.Log("Time.frameCount" + Time.frameCount);
Debug.Log("Time.realtimeSinceStartup" + Time.realtimeSinceStartup);
Debug.Log("Time.smoothDeltaTime" + Time.smoothDeltaTime);
Debug.Log("Time.time" + Time.time);
Debug.Log("Time.timeScale" + Time.timeScale);
Debug.Log("Time.timeSinceLevelLoad)" + Time.timeSinceLevelLoad);
Debug.Log("Time.unscaledTime" + Time.unscaledTime);
}
// Update is called once per frame
void Update () {
//Debug.Log("Time.deltaTime:" + Time.deltaTime);
//Debug.Log("Time.fixedDeltaTime:" + Time.fixedDeltaTime);
//Debug.Log("Time.fixedTime:" + Time.fixedTime);
//Debug.Log("Time.frameCount" + Time.frameCount);
//Debug.Log("Time.realtimeSinceStartup" + Time.realtimeSinceStartup);
//Debug.Log("Time.smoothDeltaTime" + Time.smoothDeltaTime);
//Debug.Log("Time.time" + Time.time);
//Debug.Log("Time.timeScale" + Time.timeScale);
//Debug.Log("Time.timeSinceLevelLoad)" + Time.timeSinceLevelLoad);
//Debug.Log("Time.unscaledTime" + Time.unscaledTime);
}
}
- Unity API
- Unity API
- UNITY API
- Unity API测试框架
- Unity常用API
- Unity API 笔记
- Unity API - A
- Unity API理解注释
- unity的 Social API
- Unity调用Android API
- Unity API - B
- Unity API - C
- Unity之API
- Unity 常用旋转API
- Unity 核心API
- Unity常用脚本API
- Unity常用API理解
- Unity常用API学习
- 2017.7.28
- oracle 表DML操作特别卡
- 快速读入模板
- struts2 处理结果
- ajaxSubmit的使用总结
- UNITY API
- kaoshi(Myapplication)
- Sad / zeroModalAPI
- maven本地安装jar包之后,编译报错找不到jar包
- Hibernate学习笔记 -- day04 标识符、主键生成策略
- C语言 输出宽度
- 第一篇 ENVI中自定义坐标系文件拒绝访问的解决方法
- collections中的OrderedDict
- ASIHTTPRequest 使用详解