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

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

351. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 63%]

...效果     hideEffect(): void {         Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.cre...

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

352. 感觉实例之间是关联的,求指教。(已解决) [ 62%]

...hild(img); var poker = new Poker(img,tempImageName); poker.show(); // Laya.stage.addChild(img); } } return Panel1; }(ui.Panel1UI));[/i] 这是扑克类[i]/* * 补克类 */ var Poker = (function () { function Poker(img,tempImageName) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.E...

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

353. 发布Oppo小游戏屏幕适配bug [ 62%]

...函数重置ui。注释掉就好了。自问自答,希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (L...

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

354. 高级应用-寻路导航 [ 62%]

... this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount = 10; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunL...

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

355. 物理引擎显示旋转问题 [ 62%]

...s代码:   (function () {     var Sprite = Laya.Sprite;     var Stage = Laya.Stage;     var Browser = Laya.Browser;     var WebGL = Laya.WebGL;     var Render = Laya.Render;     var Matter = Browser.window.Matter;     var LayaRender = Browser.window.LayaRender;    ...

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

356. clip清除一遍资源后再加载就无法显示了!有demo! [ 62%]

...clip:Clip; public function LayaSample() { Laya.init(1920,1080,WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ ...

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

357. clip里的WeakObject.I缓存的数据有问题 [ 62%]

...clip:Clip; public function LayaSample() { Laya.init(1920,1080,WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ ...

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

358. 3d项目base64 截图成绩有偏差 [ 62%]

...");                 var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到canvas上面                 var sp:Laya.Sprite = new Laya.Sprite();//创建精灵                 sp.graphics.drawTexture(htmlCanvas.getT...

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

359. UI 控件多次调用 RESIZE 回调问题 [ 62%]

...aya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE 方法,这个是否正常? 引擎版本:Laya.version...

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

360. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 62%]

...ter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照...

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