コード例 #1
0
    static public void AddEffect()
    {
        GameObject go = NGUIEditorTools.SelectedRoot(true);

        if (go != null)
        {
            Selection.activeGameObject = NGUISettings.AddEffect(go).gameObject;
        }
        else
        {
            Debug.Log("You must select a game object first.");
        }
    }