mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Initial commit
This commit is contained in:
commit
3c7cc0c973
8391 changed files with 704313 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.U2D;
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityEditor.U2D
|
||||
{
|
||||
public class SpriteShapeAssetPostProcessor : AssetPostprocessor
|
||||
{
|
||||
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
|
||||
{
|
||||
if (importedAssets.Length > 0)
|
||||
{
|
||||
GameObject[] allGOs = UnityEngine.Object.FindObjectsOfType<GameObject>();
|
||||
foreach (GameObject go in allGOs)
|
||||
{
|
||||
if (!go.activeInHierarchy)
|
||||
continue;
|
||||
SpriteShapeController sc = go.GetComponent<SpriteShapeController>();
|
||||
if (sc != null)
|
||||
sc.RefreshSpriteShape();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue