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

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

1071. exception info:[TypeError:undefined is not an object(evaluating'tInfo[0].attributes')] at line 764 [ 58%]

...为object层,层级设置无效的问题 Laya2.1.0 JS调用Java PlatformClass undefined Uncaught TypeError: Cannot read property 'props' of undefined 运行报错 Uncaught Can not find scene:GameView.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 鼠标自定义样...

来源: Laya_社区 发布时间: 20170523

1072. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 58%]

...vas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初始化引擎 Laya.init(1024, 768); //Stat.show(); Laya.stage.bgColor = "#ccc"; Laya.stage.scaleMode = Stage.SCALE_SHOW...

来源: Laya_社区 发布时间: 20180319

1073. Laya.Event.RESIZE 栈溢出问题 [ 58%]

...时候就会直接触发?   import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(0, 0, WebGL); // Laya.stage.scaleMode = 'full'; Laya.stage.screenMode = 'vertical'; Laya.stage.alignH = 'center'; Laya.stage.bgColor = '#ff00ff'; Laya.Stat.show(0, 0); Laya.stage.on(L...

来源: Laya_社区 发布时间: 20180525

1074. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...示。 (动图1-3) (动图1-4) 1.3 脚本控制TextArea const { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * ...

来源: Laya3.0_文档 发布时间: 20251010

1075. 模拟石头下落过程不明抖动 [ 58%]

...'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeigh...

来源: Laya_社区 发布时间: 20180226

1076. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 58%]

...a.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一...

来源: Laya2.0_文档 发布时间: 20210714

1077. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 58%]

...a.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一...

来源: Laya2.0_文档 发布时间: 20200929

1078. 改变位置后,点击区域不生效了 [ 58%]

...splay.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } privat...

来源: Laya_社区 发布时间: 20171226

1079. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 58%]

...G_ENDIAN;设置为高位即可。 4.借用下any ts里面类的你会发现classB明明继承了classA或者实现了接口IA,但是你在使用classB做处理使会出现报错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:c...

来源: Laya_社区 发布时间: 20161109

1080. Uncaught TypeError: GlowFilter is not a constructor [ 58%]

...er的时候报错: GlowFilter is not a constructor Uncaught Can not find class srcipt/game/Game_App.ts 问题状态 最新活动: 2019-02-22 15:33 浏览: 2189 关注: 2 人

来源: Laya_社区 发布时间: 20190222