xingwei.zhu
5 年前
当前提交
8d230eff
共有 6 个文件被更改,包括 64 次插入 和 12 次删除
-
2Runtime/ui/utils/basic_types/canvas_impl.cs
-
16Runtime/ui/utils/basic_types/canvas_shader.cs
-
5Runtime/ui/utils/basic_types/render_cmd.cs
-
1Runtime/ui/utils/basic_types/ui_matrix.cs
-
41Runtime/ui/utils/basic_types/canvas_shader_utils.cs
-
11Runtime/ui/utils/basic_types/canvas_shader_utils.cs.meta
|
|||
using UnityEditor.Experimental.UIElements; |
|||
using UnityEngine; |
|||
|
|||
namespace Unity.UIWidgets.ui { |
|||
|
|||
public class MaterialPropertyBlockWrapper : PoolItem { |
|||
public readonly MaterialPropertyBlock mpb; |
|||
|
|||
public MaterialPropertyBlockWrapper() { |
|||
this.mpb = new MaterialPropertyBlock(); |
|||
} |
|||
|
|||
public override void clear() { |
|||
this.mpb.Clear(); |
|||
} |
|||
|
|||
public void SetVector(int mid, Vector4 vec) { |
|||
this.mpb.SetVector(mid, vec); |
|||
} |
|||
|
|||
public void SetFloat(int mid, float value) { |
|||
this.mpb.SetFloat(mid, value); |
|||
} |
|||
|
|||
public void SetMatrix(int mid, Matrix4x4 mat) { |
|||
this.mpb.SetMatrix(mid, mat); |
|||
} |
|||
|
|||
public void SetTexture(int mid, Texture texture) { |
|||
this.mpb.SetTexture(mid, texture); |
|||
} |
|||
|
|||
public void SetInt(int mid, int value) { |
|||
this.mpb.SetInt(mid, value); |
|||
} |
|||
|
|||
public void SetFloatArray(int mid, float[] array) { |
|||
this.mpb.SetFloatArray(mid, array); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 9ddd3cd95755643c98042e67ba4714a3 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue