feat(Materials): 更新CoreBattleGround材质贴图和缩放参数
更换了CoreBattleGround材质的主纹理,将纹理GUID从73e4d6cf089824c0cadfcefa5b15d306
更新为c6af6f473739fb546ac7775e5c957da1,并调整纹理缩放参数从{x: 3, y: 4}修改为
{x: 1, y: 1},同时移除了多余的_MetallicGlossMap配置项。
```
24 lines
841 B
C#
24 lines
841 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
namespace UnityTcp.Editor.Helpers
|
|
{
|
|
/// <summary>
|
|
/// Detects unattended editor runs (CI / UTR batchmode) and gates bridge auto-start.
|
|
/// Set <see cref="AllowBridgeInBatchEnvVar"/> to opt in when integration tests need the bridge.
|
|
/// </summary>
|
|
internal static class EditorAutomationGuard
|
|
{
|
|
internal const string AllowBridgeInBatchEnvVar = "UNITY_TCP_ALLOW_BATCH";
|
|
|
|
internal static bool IsAutomatedEditorRun()
|
|
=> Application.isBatchMode
|
|
|| SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null;
|
|
|
|
internal static bool ShouldSkipBridgeAutoStart()
|
|
=> IsAutomatedEditorRun()
|
|
&& string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable(AllowBridgeInBatchEnvVar));
|
|
}
|
|
}
|