大约有 3,266 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0078 秒)
...s.maxRight = 0; //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = 852; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Mat...
来源: Laya_社区 发布时间: 20160801
...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
...载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