浏览代码

fix

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
df97e210
共有 2 个文件被更改,包括 16 次插入7 次删除
  1. 6
      com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs
  2. 17
      com.unity.uiwidgets/Runtime/foundation/debug.cs

6
com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs


_width = width;
_height = height;
_devicePixelRatio = devicePixelRatio;
devicePixelRatio = devicePixelRatio;
}
void _destroyRenderTexture() {

void _enableUIWidgetsPanel(string font_settings) {
UIWidgetsPanel_onEnable(_ptr, _renderTexture.GetNativeTexturePtr(),
_width, _height, _devicePixelRatio, Application.streamingAssetsPath, font_settings);
_width, _height, devicePixelRatio, Application.streamingAssetsPath, font_settings);
_width, _height, _devicePixelRatio);
_width, _height, devicePixelRatio);
}
void _disableUIWidgetsPanel() {

17
com.unity.uiwidgets/Runtime/foundation/debug.cs


using System.Linq;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.ui;
#if UNITY_EDITOR
#endif
using UnityEngine;
using Canvas = Unity.UIWidgets.ui.Canvas;
using Color = Unity.UIWidgets.ui.Color;

Debug.LogException(new AssertionError(message: message, innerException: ex));
}
#if UNITY_EDITOR
#endif
#if UNITY_EDITOR
#endif
public static void assert(bool result, Func<string> message = null) {
if ( enableDebug && !result ) {
throw new AssertionError(message != null ? message() : "");

PlayerPrefs.SetInt("UIWidgetsDebug",value ? 1 : 0);
}
}
#if UNITY_EDITOR
#endif
#if UNITY_EDITOR
}
}
#endif
public static void _debugDrawDoubleRect(Canvas canvas, Rect outerRect, Rect innerRect, Color color) {
var path = new Path();
path.fillType = PathFillType.evenOdd;

正在加载...
取消
保存