public static ActorSystemSetup CreateActorSystemSetup() { var actorSystemSetup = ScriptableObject.CreateInstance <ActorSystemSetup>(); ActorSystemSetupAnalyzer.InitializeActorSystemSetup(actorSystemSetup); return(actorSystemSetup); }
void CreateSetupAsset(string fileName) { var asset = CreateInstance <ActorSystemSetup>(); AssignAsset(asset); ActorSystemSetupAnalyzer.InitializeActorSystemSetup(asset); var getActiveFolderPath = typeof(ProjectWindowUtil) .GetMethod("GetActiveFolderPath", BindingFlags.Static | BindingFlags.NonPublic); var obj = getActiveFolderPath.Invoke(null, new object[0]); var pathToCurrentFolder = obj.ToString(); ProjectWindowUtil.CreateAsset(m_Asset, AssetDatabase.GenerateUniqueAssetPath(pathToCurrentFolder + $"/{fileName}.asset")); }