You've already forked Commercialization.topon
update 203
This commit is contained in:
46
AnyThinkPlugin/Script/Editor/ATAssetPostprocessor.cs
Normal file
46
AnyThinkPlugin/Script/Editor/ATAssetPostprocessor.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using AnyThink.Scripts.IntegrationManager.Editor;
|
||||
|
||||
[InitializeOnLoad]
|
||||
public class ATAssetPostprocessor : AssetPostprocessor
|
||||
{
|
||||
private static readonly string TAG = "ATAssetPostprocessor";
|
||||
|
||||
static ATAssetPostprocessor()
|
||||
{
|
||||
log("ATAssetPostprocessor is now initialized!");
|
||||
}
|
||||
void OnPostprocessAsset(string path)
|
||||
{
|
||||
log("OnPostprocessAsset() >>> path: " + path + " assetPath: " + assetPath);
|
||||
}
|
||||
|
||||
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
|
||||
{
|
||||
foreach (string str in importedAssets)
|
||||
{
|
||||
log("imported Asset: " + str);
|
||||
}
|
||||
foreach (string str in deletedAssets)
|
||||
{
|
||||
log("Deleted Asset: " + str);
|
||||
}
|
||||
|
||||
for (int i = 0; i < movedAssets.Length; i++)
|
||||
{
|
||||
log("Moved Asset: " + movedAssets[i] + " from: " + movedFromAssetPaths[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void OnPreprocessAsset()
|
||||
{
|
||||
log("OnPreprocessAsset() >>> called assetPath: " + assetPath);
|
||||
}
|
||||
|
||||
private static void log(string msg)
|
||||
{
|
||||
ATLog.log(TAG, msg);
|
||||
}
|
||||
}
|
||||
11
AnyThinkPlugin/Script/Editor/ATAssetPostprocessor.cs.meta
Normal file
11
AnyThinkPlugin/Script/Editor/ATAssetPostprocessor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 773c015bc2a8d452f967b6c4c57bbebc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be367c330856340a4a9626db43b8917b
|
||||
guid: a62affbda13454692bd833665283012b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e2b9e45df1464e4ca34d6674718bb2a
|
||||
guid: db5ce930061584ac383e17723a51940c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace AnyThink.Scripts.Editor
|
||||
// replaceAppBuildPluginVersion(path);
|
||||
#endif
|
||||
// replaceAppBuildPluginVersion(path);
|
||||
handleNetworksConfit(path);
|
||||
// handleNetworksConfit(path);
|
||||
}
|
||||
//修改项目的根目录下的build.gradle文件的插件版本号
|
||||
private static void replaceBuildPluginVersion(string buildGradlePath)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 311da97c47b0c4a21a96c7f310f9d8ad
|
||||
guid: d626fd92437ac43b0ab872491daa1322
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe7f15635ecfd4b0a9b59690ece5d0c6
|
||||
guid: 24e73b2b839c146639f94882952d2e53
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d4c4072cdc0f40c0b81bc2dc3d2dac2
|
||||
guid: 05050f3d6dbb54149aea8c057ee0f776
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
Reference in New Issue
Block a user