大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
... var ring = new myRing(600, 300, 18, "#087729", 40, "#a87729"); Laya.stage.addChild(ring.sprite); } laya_test(); 代码如上,点击绘制的圆环,无触发事件 使用的库为LayaAirJS_1.5.5_beta,库内无修改 laya air引擎使用过程中,经常发现各种不触发事...
来源: Laya_社区 发布时间: 20161221
... laya.d3.core.Camera; import laya.d3.core.scene.Scene; import laya.display.Stage; import laya.utils.Handler; import laya.utils.Stat; public class LayaAir3D { public function LayaAir3D() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stag...
来源: Laya2.0_文档 发布时间: 20210715
...很远了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20181219
....enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; Laya.URL.exportSceneToJson = GameConfig.exportSceneToJson; i...
来源: Laya_社区 发布时间: 20200104
...包用的eclipse 扫码 pc 都没问题 Laya.init(600, 400); Laya.stage.bgColor = "#ffffff"; Laya.stage.scaleMode = "exactfit"; Laya.stage.screenMode = "horizontal"; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handl...
来源: Laya_社区 发布时间: 20180808
...染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = ne...
来源: Laya2.0_文档 发布时间: 20210714
...kerDre; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1; for (let x = 0; x < this.outHandPoker.length; x++) { for (let j = 0; j <...
来源: Laya_社区 发布时间: 20180626
...to.setScreenSize=function(screenWidth,screenHeight) 这是你调用了Laya.stage.screenMode=XXXXX之后 他就会在这里调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不...
来源: Laya_社区 发布时间: 20190228
...成后, 加到舞台上时是加到GameViwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start(); 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相...
来源: Laya_社区 发布时间: 20180302
...andler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite =...
来源: Laya_社区 发布时间: 20180308