产品动态
关于腾讯特效 SDK V3.5 版本更新公告
关于腾讯特效 SDK V3.0 版本相关接口及素材变更公告






文件类型 | 纹理类型 | 备注 |
jpg/png | 2D | - |
ktx | 2D / Cubemap | hdr 文件拖入 TE 后会自动生成 ktx,然后材质中纹理字段可选择此 ktx。 |
rdt | 2D | RenderTarget。 |
pag | 2D | - |



字段 | 类型 | 是否必须 | 说明 |
defaultValue | 根据 type 的不同而不同。 | 是 | - |
uiType | string | 否 | 用于此字段编辑的 UI 的类型。 默认会根据 type 类型自动推荐合适的 uiType。 |
uiHidden | bool | 否 | 配置该字段是否展示编辑 UI。 默认 true。 |
showIfKey | string | 否 | 控制当前字段根据其他字段的值显示与否。 |
numberStep/numberRangeFrom/numberRangeTo | int/uint/float | 否 | 当 uiType 为 int/uint/float 时可配置。 三个字段分别是:步长、起始值、结束值。 |
enum | json 数组 | 当 uiType 为 enum 时,必须配置。 | [{ label:"UV0", value: 0 },{ label:"UV1", value: 1 }] |
type 类型 | defaultValue 示例 | 支持的 uiType |
bool | true | bool、enum |
bool2 | [true, true] | bool2 |
bool3 | [true, true, true] | bool3 |
bool4 | [true, true, true, true] | bool4 |
int | 1 | int、enum |
int2 | [1, 2] | int2 |
int3 | [1, 2, 3] | int3 |
int4 | [1, 2, 3, 4] | int4 |
float | 1.0 | float、enum |
float2 | [1.0, 2.0] | float2 |
float3 | [1.0, 2.0, 3.0] | float3 |
float4 | [1.0, 2.0, 3.0, 4.0] | float4 |
uint | 1 | uint、enum |
uint2 | [1, 2] | uint2 |
uint3 | [1, 2, 3] | uint3 |
uint4 | [1, 2, 3, 4] | uint4 |
mat3 | [1,0,0,0,1,0,0,0,1] | mat3 |
mat4 | [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1] | mat4 |
sampler2d | "" | file |
samplerCubemap | "" | file |
uiType 类型 | UI 效果 |
bool | ![]() |
bool2 | ![]() |
bool3 | ![]() |
bool4 | ![]() |
int/uint/float | ![]() |
int2/uint2/float2 | ![]() |
int3/uint3/float3 | ![]() |
int4/uint4/float4 | ![]() |
file | ![]() |
如果 uiType 是 int/float/uint,且同时配置了 numberStep、numberRangeFrom、numberRangeTo 字段 | ![]() |
color | ![]() |
enum | ![]() |




文档反馈