大约有 1,257 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(437) Laya3.0_api(415) Laya2.0_api(164) laya_api(138) Laya2.0_文档(51) Laya3.0_文档(36) Laya2.0_示例(9) Laya_示例(7)
... 重新获取纹理然后将textureHost设置为new_texture sprite.shaderValue.textureHost = new_texture 其他的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.C...
来源: Laya_社区 发布时间: 20180531
...te3D) 创建一个新的 MeshRender 实例。 MeshRender _addShaderDefine(value:int):void 增加Shader宏定义。 BaseRender _removeShaderDefine(value:int):void 移除Shader宏定义。 BaseRender _setShaderValueBool(shaderIndex:int, b:Boolean):void 设置布尔。 BaseRender _setShaderValueBuf...
来源: laya_api 发布时间: 20170929
...l, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya....
来源: Laya3.0_文档 发布时间: 20241014
... function get attenuation():Vector3 public function set attenuation(value:Vector3):voiddirectionproperty direction:Vector3 获取平行光的方向。 Implementation public function get direction():Vector3 public function set direction(value:Vector3):voidlightTypeproperty lig...
来源: laya_api 发布时间: 20170929
.../WebXR/core/WebXRSessionManager.ts:131 初始化Session Parameters Default value xrSessionMode: string = "immersive-vr" xrsessionMode Default value xrSessionInit: {} = {} any initInfo Returns Promise<any> initializeXRGL initializeXRGL(xrSession: any, gl: WebGLRenderingContext): Promise<bool...
来源: Laya3.0_api 发布时间: 20231115
... public function get center():Vector3 public function set center(value:Vector3):voidradiusproperty radius:Number 获取半径。 Implementation public function get radius():Number public function set radius(value:Number):voidConstructor DetailSphereCollider()Constructorpubl...
来源: laya_api 发布时间: 20170929
...l, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效果延迟一秒,真实项目不需要延迟 Laya.timer.once(1000, this, () => { //跳转到入口场景 Laya....
来源: Laya3.0_文档 发布时间: 20251105
...ne"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText("分数:" + this._score); if (this._control.createBoxInterval > 600 && this._score % 20 == 0) this._control.createBoxInterval -= 20; } 360指...
来源: Laya_社区 发布时间: 20190828
...sition: Vector3 粒子位置。 direction: Vector3 粒子方向。 Default value rand: Rand = null Default value randomSeeds: Uint32Array = null Returns void Globals "laya/d3/core/particleShuriKen/module/shape/CircleShape" CircleShape constructor arc emitFromEdge enable radius randomDirection shapeT...
来源: Laya3.0_api 发布时间: 20231115
...ute属性,attributeMap是一个映射,key是attribute属性的名称,value是一个索引值。uniformMap也是一个映射,key是uniform属性的名称,value是这个unifrom的提交周期。 提交周期的说明:提交周期表示当前的uniform更新的一种时机。 目前支持...
来源: Laya2.0_文档 发布时间: 20210714