Beispiel #1
0
        private static void CreateAIDecision()
        {
            string[] guids = AssetDatabase.FindAssets("FSMG_AIDecisionTemplate.cs");
            if (guids.Length == 0)
            {
                Debug.LogWarning("FSMG_AIDecisionTemplate.cs.txt not found in asset database");
                return;
            }
            string path = AssetDatabase.GUIDToAssetPath(guids[0]);

            NodeEditorUtilities.CreateFromTemplate(
                "New_AIDecision.cs",
                path
                );
        }