大约有 1,171 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(876) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(39) laya_api(2) Laya2.0_api(2)
...关问题 alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] Cannot read property 'displayObject' of null laya2.6.0打apk和小游戏都会报_InPool为null Uncaught TypeError: Cannot read property 'load' of null 打包apk之后,突然报一个错...
来源: Laya_社区 发布时间: 20240508
... txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText)...
来源: Laya2.0_文档 发布时间: 20210714
..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#ffffff"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); ape.pos(100,50); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); } } } new laya.Sprite_DisplayIma...
来源: Laya2.0_文档 发布时间: 20210715
.../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler....
来源: Laya_示例 发布时间: 20251209
...btn.height, "#ff00ff"); Laya.stage.addChild(btn); btn.on(Event.MOUSE_DOWN, this, function():void { btn.filters = [new GlowFilter("#ff0f0f")]; } ); btn.on(Event.MOUSE_UP, this, function():void { btn.filters = null; } ); 附件 : --> myLaya_demo1.zip 2018-12-21 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20181221
...")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现 }); 在另一个方法里面 Laya.stage.on(Laya.Event.MOUSE_UP, this, function(evt:Laya.Event):void{ console.log("aaaaa = " + evt.tager.name); //这里名字是空的,我想...
来源: Laya_社区 发布时间: 20180416
...动作的骨骼动画 替换插图没有用 sp(){ this.skebqb = new Laya.Skeleton(SkeTemp.tempbqb, 1); this.skebqb.play(4, false); this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin); this.owner.addChild(this.skebqb); ...
来源: Laya_社区 发布时间: 20201231
...开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya....
来源: Laya2.0_示例 发布时间: 20251209
...eDistconnected; private initSocket(): void { this.on(Laya.Event.OPEN, this, this.onConected); this.on(Laya.Event.ERROR, this, this.onError); } public conectToServer(): void { //“连接”按钮的回调 if (t...
来源: Laya_社区 发布时间: 20170602
...代码: override protected function initialize():void { on(Event.ADDED, this, onShow); on(Event.REMOVED, this, onHide); } protected function onShow():void { } protected function onHide():void { }我创建的View类 重写onShow方法可以正常使用,但dialog重写就没用,我看代码dialo...
来源: Laya_社区 发布时间: 20161220