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

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

311. 动态阴影被切割了?为啥没有显示完成的阴影 [ 51%]

...age.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); Laya.stage.on(Laya.Event.CLICK, this, mouseHandler); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); function LayaAir3D() { //添加照相机 var camera = (scene.addChild(new Laya.Camera()));//0, 0.3, 100 camera.transform.tr...

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

312. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 51%]

...组件 layanative2 打包android平台 报错 btCollisionObject undefined event自定义事件的问题 IDE通过.ui自动生成的ui代码报错 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 点击事件不起效 问题状态 最新活动: 2020-07-01 11:21 浏览: ...

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

313. laya.ui.CheckBox [ 50%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

来源: Laya2.0_api 发布时间: 20190513

314. laya.display.Sprite_API3.0 [ 50%]

...一个 Sprite 实例。 package { import laya.display.Sprite; import laya.events.Event; public class Sprite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef"...

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

315. Laya List给子元素添加事件后,滚动事件被劫持了 [ 50%]

... = 155; list.loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray;   Laya.stage.addChild(storeTxList);     悬赏找大神看问题...

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

316. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 50%]

...版本正常,LayaAir IDE 2.2.0beta2版本报错    Laya.stage.on(Laya.Event.CLICK, this, () => {             Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;            ...

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

317. 显示对象的mask缩放为0时遮罩效果不生效 [ 49%]

...ge.addChild(testSp); let i = 0; tmpMask.scaleX = i / 3; Laya.stage.on(Laya.Event.CLICK, this, ()=>{ i = (i + 1) % 4; tmpMask.scaleX = i / 3; }); 附件 : --> 2020-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

318. List选中项下滚会变 [ 49%]

...index",index); // } _proto_.onMouse = function(e,index){ if(e.type == Laya.Event.CLICK){ //console.log(e.type,index); if(this.selectedIndex !== index){ if(this.selectedIndex!==-1){ //之前选中的列表项的选中状态设置为false this.sList.setItem(this.selectedIndex,{ select : {label : "服...

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

319. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 49%]

...ll   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一...

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

320. list点击label保留一种状态 [ 49%]

... dataIndex = data[index]; var label = item.getChildByName('lab'); label.on(Event.CLICK,this,onClickBtn,[index]); } function onClickBtn(index){ for(var q = 0;q < 10;q++){ record_slide_list.getCell(q).getChildByName('lab').bgColor = '#f3d9b4'; } record_slide_list.getCell(index).getChildByName('lab'...

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