This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
public class CustomAndroidPreprocessBuild : IPreprocessBuildWithReport | |
{ | |
public int callbackOrder => 0; | |
public void OnPreprocessBuild(BuildReport report) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild/ | |
[Bb]uilds/ | |
[Ll]ogs/ | |
# Uncomment this line if you wish to ignore the asset store tools plugin | |
# [Aa]ssets/AssetStoreTools* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Plugins.FanhlCores.Scripts.Tools | |
{ | |
public static class ObjectEx | |
{ | |
// Kotlin: fun <T, R> T.let(block: (T) -> R): R | |
public static R Let<T, R>(this T self, Func<T, R> block) | |
{ | |
return block(self); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Plugins.FanhlCores.Tools | |
{ | |
public class LogGui : MonoBehaviour | |
{ | |
private const int MaxChars = 10000; | |
private static LogGui sInstance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace Cores.Tools | |
{ | |
public static class EnumerableEx | |
{ | |
public static bool Unanimous<T>(this IEnumerable<T> enumerable) | |
{ | |
using var enumerator = enumerable.GetEnumerator(); | |
if (enumerator.MoveNext()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Cysharp.Threading.Tasks; | |
using JetBrains.Annotations; | |
namespace Plugins.FanhlCores.Tools | |
{ | |
public class BufferHandler<T> | |
{ | |
private readonly Queue<T> items = new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Tools | |
{ | |
public interface IObserver<out T> | |
{ | |
T Updater { get; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using DG.Tweening; | |
using DG.Tweening.Core; | |
using DG.Tweening.Plugins.Options; | |
using UnityEngine; | |
namespace Tools | |
{ | |
public static class DOTweenEx | |
{ | |
public static TweenerCore<float, float, FloatOptions> DOAlpha( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
namespace Script.Tools | |
{ | |
[RequireComponent(typeof(CanvasScaler))] | |
[ExecuteAlways] | |
public class SizePerfectCanvas : MonoBehaviour | |
{ | |
[SerializeField] private CanvasScaler canvasScaler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Tools | |
{ | |
[ExecuteAlways] | |
public class SizePerfectCamera : MonoBehaviour | |
{ | |
[SerializeField] private new Camera camera; | |
[Space] [Tooltip("摄像机的尺寸范围(最小值,最大值)")] [SerializeField] |
NewerOlder