大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
... let partIns = new Laya.Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; ...
来源: Laya_社区 发布时间: 20190704
...log = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.E...
来源: Laya_社区 发布时间: 20181216
...(){ // 初始化引擎,设置了游戏的宽高 Laya.init(480,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.cal...
来源: Laya_社区 发布时间: 20170222
... ScriptSample() { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Ha...
来源: Laya2.0_文档 发布时间: 20210715
...a.Browser.width; var H = Laya.Browser.height; Laya.init(W,H,Webgl); /*Laya.stage.scaleMode = Laya.stage.SCALE_SHOWALL; Laya.stage.alignH = Laya.stage.ALIGN_CENTER; Laya.stage.alignV = Laya.stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.stage.SCREEN_NODE;*/ this.tMap = new Laya.TiledMap(); var view...
来源: Laya_社区 发布时间: 20180915
... 2018-08-22 15:24 @138*****047:var arr=[]; var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Even...
来源: Laya_社区 发布时间: 20180510
...era.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会...
来源: Laya_社区 发布时间: 20171012
....enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; //Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.screenMode = "horizontal"; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; //兼容微信不支...
来源: Laya_社区 发布时间: 20181027
...代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var apeTexture; (f...
来源: Laya2.0_文档 发布时间: 20210714
...s文件的全部代码。module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.a...
来源: Laya_社区 发布时间: 20170425