Storyline+Dialog初步

This commit is contained in:
SoulliesOfficial
2026-07-05 16:08:23 -04:00
parent afa8a56e1d
commit d031afd075
464 changed files with 25716 additions and 4209 deletions

View File

@@ -0,0 +1,25 @@
using SubAssetsToolbox.Editor.SubAssetAware;
using UnityEditor;
using UnityEngine;
namespace SubAssetsToolbox.Editor
{
static class SubAssetsToolbox
{
public static void AddSubAsset(string destinationPath, Object objectToClone, out Object newClone)
{
newClone = Object.Instantiate(objectToClone);
newClone.name = objectToClone.name;
AssetDatabase.AddObjectToAsset(newClone, destinationPath);
SubAssetAwareMethods.NotifyAwareObjectOfAddition(destinationPath, newClone);
}
public static void RemoveSubAsset(string oldParentPath, Object objectToRemove)
{
SubAssetAwareMethods.NotifyAwareObjectOfRemoval(oldParentPath, objectToRemove);
AssetDatabase.RemoveObjectFromAsset(objectToRemove);
}
}
}