```
feat(Materials): 更新CoreBattleGround材质贴图和缩放参数
更换了CoreBattleGround材质的主纹理,将纹理GUID从73e4d6cf089824c0cadfcefa5b15d306
更新为c6af6f473739fb546ac7775e5c957da1,并调整纹理缩放参数从{x: 3, y: 4}修改为
{x: 1, y: 1},同时移除了多余的_MetallicGlossMap配置项。
```
This commit is contained in:
1 parent
9658decd6c
commit
c09e15dd0e
369 files changed
+129868
-792
No files matched your search
+71
@@ -0,0 +1,71 @@
|
||||
#if UNITY_EDITOR_WIN || UNITY_EDITOR_OSX
|
||||
using System;
|
||||
|
||||
namespace Cn.Tuanjie.Codely.Editor
|
||||
{
|
||||
public readonly struct WindowHostStabilityDecision
|
||||
{
|
||||
public WindowHostStabilityDecision(bool shouldApply, IntPtr nextStableHandle, IntPtr nextPendingHandle)
|
||||
{
|
||||
ShouldApply = shouldApply;
|
||||
NextStableHandle = nextStableHandle;
|
||||
NextPendingHandle = nextPendingHandle;
|
||||
}
|
||||
|
||||
public bool ShouldApply { get; }
|
||||
public IntPtr NextStableHandle { get; }
|
||||
public IntPtr NextPendingHandle { get; }
|
||||
}
|
||||
|
||||
public static class WindowHostStabilityPolicy
|
||||
{
|
||||
public static WindowHostStabilityDecision Evaluate(IntPtr currentHandle, IntPtr stableHandle, IntPtr pendingHandle)
|
||||
{
|
||||
if (currentHandle == IntPtr.Zero)
|
||||
{
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: false,
|
||||
nextStableHandle: stableHandle,
|
||||
nextPendingHandle: IntPtr.Zero);
|
||||
}
|
||||
|
||||
if (stableHandle == IntPtr.Zero)
|
||||
{
|
||||
if (pendingHandle == currentHandle)
|
||||
{
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: true,
|
||||
nextStableHandle: currentHandle,
|
||||
nextPendingHandle: IntPtr.Zero);
|
||||
}
|
||||
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: false,
|
||||
nextStableHandle: IntPtr.Zero,
|
||||
nextPendingHandle: currentHandle);
|
||||
}
|
||||
|
||||
if (currentHandle == stableHandle)
|
||||
{
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: true,
|
||||
nextStableHandle: stableHandle,
|
||||
nextPendingHandle: IntPtr.Zero);
|
||||
}
|
||||
|
||||
if (pendingHandle == currentHandle)
|
||||
{
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: true,
|
||||
nextStableHandle: currentHandle,
|
||||
nextPendingHandle: IntPtr.Zero);
|
||||
}
|
||||
|
||||
return new WindowHostStabilityDecision(
|
||||
shouldApply: false,
|
||||
nextStableHandle: stableHandle,
|
||||
nextPendingHandle: currentHandle);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user