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

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

1231. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 49%]

... { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.ape); //这里是我注释掉的代码 //var texture: Texture = Laya.loader.getRes(this.ApePath); //this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.sta...

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

1232. JS进度条加载问题 [ 49%]

...dler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进度: "+Math.floor(value*100)+"%"); } function onProgress(pro) { trace("加载了总文件的:"+pro+"%") progressBar.value=pro; if(progressBar.value==1)...

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

1233. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 49%]

... mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); }     } } new laya.Loader_MultipleType();   2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞同来...

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

1234. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 49%]

...e = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限...

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

1235. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 49%]

...123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

1236. tween有这个一个bug [ 49%]

...ale2d.y; share.x = this.Move2d.x; share.y = this.Move2d.y; this.SceneMajor.addChild(share); share.btShare.on('click',this,function(){ // Laya.SoundManager.playSound(SfxPool.btPress, 1, null); this.SceneShareDark(); }); share.btSignUp.on('click',this, SignUp_Func); var timeLine = new Laya.TimeLine();...

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

1237. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 49%]

...肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 : --> skeleton.zip 2018-09-05 添...

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

1238. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...x.selectHandler = new Handler(this, this.onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```

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

1239. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 49%]

...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...

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

1240. 无法触发浏览器文件上传框 [ 49%]

...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...

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