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

大约有 161 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0050 秒)

101. LayaAir2.13.0 面板获取物体 代码获取该物体上的脚本 [ 55%]

...个回复 时光123 赞同来自: 已经解决了,调试发现stage下的child数量为0 ,所以不能通过laya.stage获取。 要用owner.parent.getChildByname 2022-08-04 0 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,我们这里按照您说的方式获取物体并获取组...

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

102. lh文件内meshSprite添加阴影属性无效 [ 55%]

...生效了   var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mesh = this.sprite3D.getChildAt(i) as Laya.MeshSprite3D; mesh.meshRender.material = material; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2...

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

103. Laya发布成H5游戏的canvas后 怎么做自动化测试.获取到里面的元素.有人会吗 [ 54%]

...容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.stage的_childs里包含了全部的显示对象,如果你是想操作显示对象的话你可以控制里面,具体你其他的需要这个就不清楚了。 2018-09-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

104. .ui文件内的动画如何读取和播放? [ 54%]

...,一段是在某个按钮被点击的时候再播,一开始我尝试getChildByName后直接尝试播放就报错了,想说是不是没拿到,然后就打个log看下,果然输出了null,想问下如下的这个“moveOut”动画如何播放呢?因为我看输出的layaUI.max.all.js里...

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

105. UI-Tree [ 53%]

...= Laya.Label; var Utils = Laya.Utils; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name"...

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

106. laya.ui.Panel_API3.0 [ 53%]

...Skin height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect scrollType skewX skewY stage staticCache texture timer toolTip top transform url vScrollBar vScrollBarSkin viewport visible width x y zOrder Methods ...

来源: Laya3.0_api 发布时间: 20231115

107. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 53%]

... "D:\Users\Administrator\Personal\myLaya2.2\Client\src\tsconfig.json"  at ChildProcess.exithandler (child_process.js:217:12) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_p...

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

108. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 53%]

...r.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount) LayaExport.DataManager.getGameObjectData (UnityEngine...

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

109. 分享个用美术资源做位图文本的方法。。。 [ 52%]

...a,600,"right"); bp.padding = bp1.padding = bp2.padding = -7; Laya.stage.addChild(bp); Laya.stage.addChild(bp1); Laya.stage.addChild(bp2); var t = 1000; Laya.timer.loop(1000,that,function(){ bp.text = t + ""; bp1.text = t + ""; bp2.text = t + ""; t++; }) } )); } } new GameMain(); 运行效果基本...

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

110. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 52%]

...n/env node const program = require('commander'); const { fork } = require('child_process'); const path = require('path'); program.parse(process.argv); const projPath = path.join(__dirname, '../'); const layaCompileDir = path.join(projPath, '.laya'); const gulpFilePath = path.join(layaCompileDir, 'co...

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