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

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

251. 材质-BlinnPhong-法线贴图 [ 63%]

... camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 0.6, 1.1)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var directionLight = this.scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector...

来源: Laya_示例 发布时间: 20251209

252. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 63%]

...可以参考Laya.Sprite的mouseThrogh的注释,如下所示: /** * @en For non-UI component display object nodes (container objects or display objects without image resources), specifies whether the mouse events penetrate this object's collision detection. `true` means the object is penetrable, ...

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

253. discard property,please use transform's property instead [ 63%]

discard property,please use transform's property instead 运行官网的3D例子时,浏览器一直报这个 2018-07-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 就是那个属性...

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

254. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 63%]

...ate function aniUrls(aniName:String,length:int):Array { var urls:Array=[]; for(var i:int=0;i(图6) 我们继续沿用之前的示例,在onLoaded方法中添加play()。 onLoaded方法中的代码如下所示 ```java private function onLoaded():void { //添加到舞台 Laya.stage.addChild(roleA...

来源: Laya2.0_文档 发布时间: 20210715

255. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 63%]

...nMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image...

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

256. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...一个新的宽度曲线 const floatKeyframe: Laya.FloatKeyframe[] = []; for (let i = 0; i < value.length; i++) { //创建一个新的关键帧 let keyframe = new Laya.FloatKeyframe(); //设置关键帧的各项属性 keyframe.inTangent = value[i].inTangent; keyframe.outTangent = value[i].outTang...

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

257. laya绘制图形进行缩放的时候有问题 [ 62%]

...amp;& this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <= 1.5) { this.scaleX += 0.1; this.scaleY += 0.1; for (var i = 0...

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

258. 如何使用vscode编译laya项目 [ 62%]

...则 //获取Node插件和工作路径 let ideModuleDir; let workSpaceDir; for(var argv of process.argv) { if(argv.indexOf("--cwd=") == 0) { ideModuleDir = argv.split("=")[1] + "\\node_modules\\"; } else if(argv.indexOf("--gulpfile=") == 0) { workSpaceDir = argv.split("=")[1].replace("/.laya/compile....

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

259. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 62%]

...le); //我自己添加的部分 if(this._getCSSStyle()._getValign() == 1){ for(var i = 0; i < this._childs.length; i++){ var e = this._childs[i]; if(e instanceof HTMLElement && e._text.words){ for(var j = 0; j < e._text.words.length; j++){ var w = e._text.words[j]; w.y = (this.height -...

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

260. 2D物理-桥 [ 62%]

...ntIntance(pointRB1); let preBody = pointRB1; let width = 20, height = 2.5; for (let i = 0; i { let targetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleBody = newBall....

来源: Laya2.0_示例 发布时间: 20251209