1110319 編輯模式[ExecuteInEditMode] 
                    by 黃國哲 2022-03-19 15:39:03, 回應(0), 人氣(741)
 2022-03-19 15:39:03, 回應(0), 人氣(741)
                        
                     2022-03-19 15:39:03, 回應(0), 人氣(741)
 2022-03-19 15:39:03, 回應(0), 人氣(741)在腳本開始前輸入
[ExecuteInEditMode]
可以讓腳本中的內容在編輯模式就能夠被使用
using UnityEngine;
using System.Collections;
[ExecuteInEditMode] //不用進去執行也能在編輯模式中執行 <----
public class transformFindusage : MonoBehaviour {
	// Use this for initialization
	void Start () 
	{}
	// Update is called once per frame
	void Update () 
	{}
}
回應
                   
 
        
