强制Unity的RunTime事件在编辑模式下触发
using UnityEngine;[ExecuteInEditMode]public class PrintAwake : MonoBehaviour{ void Awake() { Debug.Log("Editor causes this Awake"); } void Update() { Debug.Log("Editor causes this Update"); }}添加一个[ExecuteInE.
原创
2022-02-23 15:27:54 ·
2376 阅读 ·
0 评论