大约有 655 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0101 秒)
Laya_社区(334) Laya3.0_api(62) Laya2.0_api(58) laya_api(53) Laya2.0_文档(51) Laya2.0_示例(44) Laya_示例(39) Laya3.0_文档(14)
...效果 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
...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
...函数重置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
... 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
...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
...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
...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
..."); 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
...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
...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