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

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

261. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 63%]

...{         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]};        ...

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

262. hitTestPrior点击穿透 [ 62%]

...tPrior window[`hitTestPrior`] = () => { let box1 = new Laya.Box(); box1.width = box1.height = 500; let sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, box1.width, box1.height, `#999900`); box1.addChild(sp); box1.clickHandle = () => { lizheng.log(`点击了box1`); } box1.hitTestPrior = false...

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

263. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 62%]

...AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0;...

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

264. 自动布局容器 [ 61%]

...如list,你可以监听一个Event.RESIZE事件,你可以通过Broswer.width和Browser.height判断出此时是横屏还是竖屏,然后动态的修改list的rotation即可! asdf131 • 2017-04-07 21:41 回复不可以加图片啊,我编辑了上面的内容,加了一张图片,就是...

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

265. 内嵌模式创建scene,运行时报找不到json文件 [ 61%]

...elloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constru...

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

266. textinput动态修改宽度 会出现重叠的文字 [ 61%]

...ut(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识...

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

267. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 61%]

... var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function ():void { text = "ShowMsg"; color = "red"; }.bind(_lab); })); ``` 最后...

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

268. List组件拖动浏览时item会出现重叠的现象 [ 60%]

...st.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直...

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

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

...the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The h...

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

270. Node类中getChildByName没有null容错 [ 59%]

...:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null TypeError: Cannot read property 'length' of null Laya.stage报null 问题状态 最新活动: 2017-03-23 19:56 浏览: 1347 关注: 2 人 palgerrard • 2017-03-23 20:31 ok,其实还是有可能出现空的。

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