【m】更新后台
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 10cd38fccc1db684d9a576da1f9dc85e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,40 +0,0 @@
|
||||
// using System;
|
||||
// using System.IO;
|
||||
//
|
||||
// namespace Stary.Evo.Editor
|
||||
// {
|
||||
// public class ChangeScriptTemplates : UnityEditor.AssetModificationProcessor
|
||||
// {
|
||||
// // 要添加的注释的内容
|
||||
// private static string annotationStr =
|
||||
// "/**************************************************** \r\n"
|
||||
// + " 文件:#Filename\r\n"
|
||||
// + " 作者:#CreateAuthor#\r\n"
|
||||
// + " 邮箱:\r\n"
|
||||
// + " 日期:#CreateTime#\r\n"
|
||||
// + " 功能:\r\n"
|
||||
// + "*****************************************************/\r\n\n";
|
||||
//
|
||||
// public static void OnWillCreateAsset(string path)
|
||||
// {
|
||||
// //将.meta后缀屏蔽
|
||||
// path = path.Replace(".meta", "");
|
||||
// //只对.cs脚本作操作
|
||||
// if (path.EndsWith(".cs"))
|
||||
// {
|
||||
// //读取该路径下的.cs文件中的所有文本.
|
||||
// //注意,此时Unity已经对脚本完成了模版内容的替换,包括#SCRIPTNAME#也已经被替换为文件名了,读取到的是替换后的文本内容.
|
||||
// annotationStr += File.ReadAllText(path);
|
||||
// //获取用户名和当前系统时间并替换对应位置内容
|
||||
// annotationStr = annotationStr.Replace("#CreateAuthor#", Environment.UserName)
|
||||
// .Replace("#CreateTime#", string.Concat(DateTime.Now.Year, "/", DateTime.Now.Month, "/",
|
||||
// DateTime.Now.Day, " ", DateTime.Now.Hour, ":", DateTime.Now.Minute, ":", DateTime.Now.Second))
|
||||
// .Replace("#Filename", Path.GetFileName(path));
|
||||
// if (!File.ReadAllText(path).Contains("文件") && !File.ReadAllText(path).Contains("作者") && !File.ReadAllText(path).Contains("邮箱") && !File.ReadAllText(path).Contains("日期") && !File.ReadAllText(path).Contains("功能"))
|
||||
// //重新将文本写入.cs文件
|
||||
// File.WriteAllText(path, annotationStr);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46fd7b74d162e9042a93085169ef025f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
/****************************************************
|
||||
文件:StringToLayer.cs
|
||||
作者:张铮
|
||||
邮箱:834207172@qq.com
|
||||
日期:2022/3/3 17:53:52
|
||||
功能:
|
||||
*****************************************************/
|
||||
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.Editor
|
||||
{
|
||||
public class PlayerPrefsData
|
||||
{
|
||||
[MenuItem("Evo/Utility/PlayerPrefsClear")]
|
||||
private static void PlayerPrefsClear()
|
||||
{
|
||||
PlayerPrefs.DeleteAll();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56c6f609a1f54a48939218df73a1e4fd
|
||||
timeCreated: 1748584452
|
||||
Reference in New Issue
Block a user