大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0063 秒)
... b.name = "egg"+i; Laya.stage.addChild(b); b.on(Event.MOUSE_DOWN, this, mouseHandler); b.on(Event.MOUSE_MOVE, this, mouseHandler); b.on(Event.MOUSE_UP, this, mouseHandler);...
来源: Laya_社区 发布时间: 20170517
... bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); bg2.pivot(50,50) //创建mas...
来源: Laya_社区 发布时间: 20170828
...考官方案例。 https://layaair.ldc.layabox.co ... World Laya.stage.addChild(MaxUi.GameUi); MaxUi.GameUi.addChild(tiledMap); 1、原图按照1.5倍来开发,所有逻辑坐在MaxUi.GameUi 上。 2、手势缩放时,MaxUi.GameUi.scale(2,2) 放大 或者 MaxUi.GameUi.scale(1,1) ...
来源: Laya_社区 发布时间: 20180502
...把此信息截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27) at ParticleScene.__proto...
来源: Laya_社区 发布时间: 20170908
...oaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alp...
来源: Laya_社区 发布时间: 20180529
...ml } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "<div>" html += "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</s...
来源: Laya_社区 发布时间: 20170314
... return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.designWidth; Laya.Browser.window.sharedCanvas.height = Laya.stage.design...
来源: Laya_社区 发布时间: 20200618
...le is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined. 代码如下: package { import laya.display.Text; public class LayaAirTest { public function LayaAirTest() { Laya....
来源: Laya_社区 发布时间: 20170429
...把此信息截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27) at ParticleScene.__proto...
来源: Laya_社区 发布时间: 20170908
...3D = Laya.Sprite3D.load("res/Coin/layaScene.lh") as Laya.Sprite3D; scene.addChild(temp); temp.on(Laya.Event.HIERARCHY_LOADED,this,()=> { this.model = Laya.MeshSprite3D.instantiate(temp,scene) as Laya.MeshSprite3D; if(index == 0) { this.model.transform.position = new Laya.Vector3(0.8...
来源: Laya_社区 发布时间: 20180827