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

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

21. 报错,这不是个构造函数 "StartPage is not a constructor" [ 81%]

...ple: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GameP...

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

22. 按照官方的操作步骤为flashBuilder创建项目,无法运行。报错Cannot read property 'addChild' of null [ 80%]

...erty 'addChild' of null 打印了Laya.version输出为null addChild到Laya.stage,报错 请问是不是我有什么地方未配置正确? “位置”已添加为${workspace_loc:/Test_280_01/as/layajs.exe} “自变量”已添加为"${project_loc}\.actionScriptProperties;iflash=false;chromerun=...

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

23. laya.display.Sprite [ 78%]

...prite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprit...

来源: Laya2.0_api 发布时间: 20190513

24. cannot read property '1'of null [ 78%]

...碰撞体报错,Cannot read property 'btSphereShape' of undefined Laya.stagenull 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined 问题状态 最新活动: 2022-01-06 19:59 浏览: 2797 关注: 2 人 173*****785 • 2022-01-08...

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

25. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 78%]

...差异,相比 canvas情况下 颜色更接近设置的 (function() { var Stage = Laya.Stage; var Loader = Laya.Loader; var Particle2D = Laya.Particle2D; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时...

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

26. 自己写了个label继承官方的label,出现了问题,求指导~ [ 76%]

...DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错-------------------------------------------- var label:Lab...

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

27. laya.display.Stage_API3.0 [ 76%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Stage" Stage Class Stage Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不同的画...

来源: Laya3.0_api 发布时间: 20231115

28. 场景调用offAll会报错。 [ 76%]

场景调用offAll会报错。 代码: scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene);  scene = new Scene(); Laya.stage.addChild(scene); scene.offAll(); Laya.stage.removeChild(scene); scene = new Scene(); Laya.stage.addChild(scene); Laya.stage.remo...

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

29. laya.ui.Slider [ 76%]

...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...

来源: Laya2.0_api 发布时间: 20190513

30. 安卓和iPhone的触控差异 [ 76%]

...异 实现类似飞机大战一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } priv...

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