浏览代码

all warnings have been resolved

/zxw-refine_codegen
Xingwei Zhu 3 年前
当前提交
eec9bd1a
共有 13 个文件被更改,包括 58 次插入31 次删除
  1. 49
      Samples/UIWidgetsSamples_2019_4/Assets/Scene/GalleryTest.unity
  2. 4
      com.unity.uiwidgets/Runtime/painting/binding.cs
  3. 2
      com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.gen.cs
  4. 2
      com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.njk
  5. 2
      com.unity.uiwidgets/Runtime/rendering/binding.cs
  6. 2
      com.unity.uiwidgets/Runtime/rendering/object.cs
  7. 4
      com.unity.uiwidgets/Runtime/scheduler/binding.cs
  8. 2
      com.unity.uiwidgets/Runtime/services/binding.cs
  9. 4
      com.unity.uiwidgets/Runtime/widgets/framework.cs
  10. 6
      com.unity.uiwidgets/Runtime/widgets/inherited_notifier.cs
  11. 4
      com.unity.uiwidgets/Runtime/widgets/sliver.cs
  12. 4
      com.unity.uiwidgets/Runtime/widgets/sliver_layout_builder.cs
  13. 4
      com.unity.uiwidgets/Runtime/widgets/sliver_prototype_extent_list.cs

49
Samples/UIWidgetsSamples_2019_4/Assets/Scene/GalleryTest.unity


m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641275, b: 0.5748172, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:

m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_Texture: {fileID: 1690112868}
m_UVRect:
serializedVersion: 2
x: 0

devicePixelRatioEditorOnlyOverride: 0
fonts:
- family: Material Icons
fonts:

fonts:
- asset: gallery/GalleryIcons.ttf
weight: 0
devicePixelRatioOverride: 1
hardwareAntiAliasing: 0
--- !u!222 &847097471
CanvasRenderer:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 90, y: 180, z: 0}
--- !u!28 &1690112868
Texture2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 2
m_Width: 0
m_Height: 0
m_CompleteImageSize: 0
m_TextureFormat: 0
m_MipCount: 1
m_IsReadable: 1
m_IgnoreMasterTextureLimit: 0
m_IsPreProcessed: 0
m_StreamingMipmaps: 0
m_StreamingMipmapsPriority: 0
m_AlphaIsTransparency: 0
m_ImageCount: 0
m_TextureDimension: 2
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 0
m_WrapV: 0
m_WrapW: 0
m_LightmapFormat: 0
m_ColorSpace: 0
image data: 0
_typelessdata:
m_StreamData:
offset: 0
size: 0
path:
--- !u!1 &1900497009
GameObject:
m_ObjectHideFlags: 0

4
com.unity.uiwidgets/Runtime/painting/binding.cs


shaderWarmUp.execute();
}
}
#pragma warning disable CS0108
#pragma warning restore CS0108
public static ShaderWarmUp shaderWarmUp = new DefaultShaderWarmUp();

2
com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.gen.cs


return true;
}
public ChildType child { get; set; }
public new ChildType child { get; set; }
RenderObject RenderObjectWithChildMixin.child {
get { return child; }

2
com.unity.uiwidgets/Runtime/rendering/RenderAnimatedOpacityMixin.mixin.njk


return true;
}
public ChildType child { get; set; }
public new ChildType child { get; set; }
RenderObject RenderObjectWithChildMixin.child {
get { return child; }

2
com.unity.uiwidgets/Runtime/rendering/binding.cs


namespace Unity.UIWidgets.rendering {
public class RendererBinding : SchedulerBinding {
#pragma warning disable CS0108
#pragma warning restore CS0108
protected override void initInstances() {
base.initInstances();

2
com.unity.uiwidgets/Runtime/rendering/object.cs


}
public interface RenderObjectWithChildMixin<ChildType> : RenderObjectWithChildMixin where ChildType : RenderObject {
ChildType child { get; set; }
new ChildType child { get; set; }
}
public interface ContainerParentDataMixin<ChildType> : IParentData where ChildType : RenderObject {

4
com.unity.uiwidgets/Runtime/scheduler/binding.cs


public SchedulingStrategy schedulingStrategy = scheduler_.defaultSchedulingStrategy;
#pragma warning disable CS0108
#pragma warning restore CS0108
public AppLifecycleState? lifecycleState { get; private set; }

2
com.unity.uiwidgets/Runtime/services/binding.cs


//SystemChannels.system.setMessageHandler(handleSystemMessage);
}
#pragma warning disable CS0108
#pragma warning restore CS0108
public BinaryMessenger defaultBinaryMessenger => _defaultBinaryMessenger;
BinaryMessenger _defaultBinaryMessenger;

4
com.unity.uiwidgets/Runtime/widgets/framework.cs


public abstract class RenderObjectElement : Element {
protected RenderObjectElement(RenderObjectWidget widget) : base(widget) {
}
#pragma warning disable CS0108
#pragma warning restore CS0108
RenderObject _renderObject;

6
com.unity.uiwidgets/Runtime/widgets/inherited_notifier.cs


public _InheritedNotifierElement(InheritedNotifier<T> widget) : base(widget) {
widget.notifier?.addListener(_handleUpdate);
}
#pragma warning disable CS0108
#pragma warning restore CS0108
//In flutter this variable is named as _dirty and hides the property of its parent with the name variable name
//We give it a new name, i.e., _notifier_dirty in UIWidgets so that the code looks more clear
bool _notifier_dirty = false;

4
com.unity.uiwidgets/Runtime/widgets/sliver.cs


public class _SliverOffstageElement : SingleChildRenderObjectElement {
public _SliverOffstageElement(SliverOffstage widget) : base(widget) {
}
#pragma warning disable CS0108
#pragma warning restore CS0108
public override void debugVisitOnstageChildren(ElementVisitor visitor) {
if (!widget.offstage)

4
com.unity.uiwidgets/Runtime/widgets/sliver_layout_builder.cs


}
internal RenderSliver _child;
internal new RenderSliver _child;
public RenderSliver child {
public new RenderSliver child {
get { return _child; }
set {
if (_child != null) {

4
com.unity.uiwidgets/Runtime/widgets/sliver_prototype_extent_list.cs


using System.Collections.Generic;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;

D.assert(child != null && child.hasSize);
return constraints.axis == Axis.vertical ? child.size.height : child.size.width;
}
set { }
set {
}
}
}
正在加载...
取消
保存