大约有 3,276 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)
...this.index].x; this._position.z = this.resPath[this.index++].y; //HeightMap获取高度数据 this._position.y = this.terrainSprite.getHeight(this._position.x, this._position.z); if (isNaN(this._position.y)) { this._position.y = this.moveSprite3D.transform.position.y; } this._tarPosition.x = this._p...
来源: Laya3.0_文档 发布时间: 20230303
...对应的VS和FS片段标记。 7.2 顶点着色器 在VS片段中,需要获取顶点信息,并计算最终的顶点位置,代码如下所示: #defineGLSL textureVS #define SHADER_NAME Sprite2DTextureShader #include "Sprite2DVertex.glsl"; void main() { vertexInfo info; getVertexInfo(info); v...
来源: Laya3.0_文档 发布时间: 20251010
...一开始我保证粒子已经加载到cache中也不行,因为没有去获取解析粒子文件
来源: Laya_社区 发布时间: 20181126
... Laya.stage.drawToCanvas(750,1183,0,0); var canvas:* = htmlC.getCanvas();//获取原生的canvas对象 var base64String:String = canvas.toDataURL("image/png"); var _webframe:*; _webframe = Browser.document.createElement("img"); _webframe.setAttribute('src', base64String); //_webframe.setAttribute('f...
来源: Laya_社区 发布时间: 20180103
...= false; } } /** * 获取是否运行中 */ public get running(): boolean { return this.$running; } /** * 获取运行的时间 */ publi...
来源: Laya_社区 发布时间: 20181114
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
... not attach to main target Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大...
来源: Laya_社区 发布时间: 20201120
...普通的渲染流程。但是,我们更建议调整Spine美术资源以获取最优的动画播放性能。 2.3 皮肤名称 skinName 当Spine里存在多套皮肤的话,通过切换不同的皮肤名称,可以在IDE里预览不同皮肤的效果,如图2-1所示。 (图2-1) 开发者也...
来源: Laya3.0_文档 发布时间: 20260203
...载Texture还是Texture2D,他们在内存中都只有一份,但可以获取不同类型。 Laya.loader.load("1.png").then((res)=> { /* res是Texture */ }); Laya.loader.load("1.png", Loader.Texture2D).then((res)=> { /* res是Texture2D */ }); Laya.loader.getRes("1.png"); //res是Texture Laya...
来源: Laya3.0_文档 发布时间: 20251010
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231102