浏览代码

Merge branch 'double_to_float' into 'master'

Double to float

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!70
/main
Shenhua Gu 6 年前
当前提交
f37cf4af
共有 3 个文件被更改,包括 16 次插入5 次删除
  1. 12
      README.md
  2. 1
      Runtime/rendering/box.mixin.gen.cs
  3. 8
      Runtime/rendering/proxy_box.mixin.njk

12
README.md


3. **Refine Code Style Rules**: Edit the ".editorconfig" file under \<YourProjectPath\>/Packages/com.unity.uiwidgets/". Visit
https://www.jetbrains.com/help/rider/EditorConfig_Index.html for the detailed.
#### Generate njk Code
1. **Go to scripts Folder and Run npm install**:
```
cd <YourProjectPath>/Packages/com.unity.uiwidgets/scripts
npm install
```
2. **Run the codegen Command**:
```
node uiwidgets-cli.js codegen . generate mixin code
```

1
Runtime/rendering/box.mixin.gen.cs


using System;
using System.Collections.Generic;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.ui;

8
Runtime/rendering/proxy_box.mixin.njk


return this.child.getMinIntrinsicWidth(height);
}
return 0.0;
return 0.0f;
}
protected override float computeMaxIntrinsicWidth(float height) {

return 0.0;
return 0.0f;
}
protected override float computeMinIntrinsicHeight(float width) {

return 0.0;
return 0.0f;
}
protected override float computeMaxIntrinsicHeight(float width) {

return 0.0;
return 0.0f;
}
protected override float? computeDistanceToActualBaseline(TextBaseline baseline) {

正在加载...
取消
保存