1.Untiy相同周期在不同脚本中的执行顺序
Untiy相同周期在不同脚本中的执行顺序
可以设置脚本执行顺序Edit->Project Settings...->Script Execution Order
写两个测试脚本看看效果:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestScriptA : MonoBehaviour
{
void Awake()
{
Debug.Log("TestScriptA: Awake()");
}
}
-----------------------------------------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestScriptB : MonoBehaviour
{
void Awake()
{
Debug.Log("TestScriptB: Awake()");
}
}
将TestScriptA.cs和TestScriptB.cs挂到场景中的一个GameObject上,运行看看效果。android图书管理系统源码
印度红绿波源码日志截图
印度红绿波源码更多Unity开发教程
印度红绿波源码印度红绿波源码2025-02-06 04:00
2025-02-06 03:07
2025-02-06 02:59
2025-02-06 02:42
2025-02-06 02:34
2025-02-06 02:28
2025-02-06 02:16
2025-02-06 01:34