• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,171 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

361. [LayaAir3]Laya.LayaGL 是null [ 74%]

...关问题 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

362. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 74%]

... 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

363. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 74%]

..._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

364. 高级应用-渲染纹理 [ 74%]

.../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

365. 滤镜问题,有复现demo [ 74%]

...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

366. 3D射线穿透UI问题 [ 74%]

...")) 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

367. 一个没有动作的骨骼动画 替换插图没有用 [ 74%]

...动作的骨骼动画 替换插图没有用     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

368. 2D物理-碰撞事件与传感器 [ 73%]

...开发更高效。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

369. socket无法连接服务器 [ 73%]

...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

370. Dialog的onShow方法重写无效 [ 73%]

...代码: 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