• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,266 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0078 秒)

3221. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 41%]

...s.maxRight = 0; //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的时候将坐标放到屏幕右边 this.x = 852; //y坐标取一个随机值 为什么是32 因为我们的整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Mat...

来源: Laya_社区 发布时间: 20160801

3222. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 40%]

...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

3223. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...对应的VS和FS片段标记。 7.2 顶点着色器 在VS片段中,需要获取顶点信息,并计算最终的顶点位置,代码如下所示: #defineGLSL textureVS #define SHADER_NAME Sprite2DTextureShader #include "Sprite2DVertex.glsl"; void main() { vertexInfo info; getVertexInfo(info); v...

来源: Laya3.0_文档 发布时间: 20251010

3224. 场景或者View中加入编辑好的2d粒子,加载场景或者view播放的时候会报错误 [ 40%]

...一开始我保证粒子已经加载到cache中也不行,因为没有去获取解析粒子文件

来源: Laya_社区 发布时间: 20181126

3225. 某些机型drawToCanv绘图颜色变深 [ 40%]

... 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

3226. 微信小游戏渲染开放域卡顿处理 [ 40%]

...= false;             }         }         /**          * 获取是否运行中          */         public get running(): boolean {             return this.$running;         }         /**          * 获取运行的时间          */         publi...

来源: Laya_社区 发布时间: 20181114

3227. laya.physics.joint.WheelJoint_API3.0 [ 40%]

... 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

3228. localRotationEulerY旋转位置错误 [ 40%]

... not attach to main target Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大...

来源: Laya_社区 发布时间: 20201120

3229. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...载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

3230. laya.components.CommonScript_API3.0 [ 39%]

... 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