大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya_社区(77) Laya3.0_api(64) laya_api(3) Laya2.0_api(3) Laya_示例(2) Laya2.0_文档(2) Laya3.0_文档(1) Laya2.0_示例(1)
...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
...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
...prite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprit...
来源: Laya2.0_api 发布时间: 20190513
...碰撞体报错,Cannot read property 'btSphereShape' of undefined Laya.stage报null 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined 问题状态 最新活动: 2022-01-06 19:59 浏览: 2797 关注: 2 人 173*****785 • 2022-01-08...
来源: Laya_社区 发布时间: 20220106
...差异,相比 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
...DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错-------------------------------------------- var label:Lab...
来源: Laya_社区 发布时间: 20170516
...Protected All Inherited Externals Only exported Menu Globals "laya/display/Stage" Stage Class Stage Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不同的画...
来源: Laya3.0_api 发布时间: 20231115
场景调用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
...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...
来源: Laya2.0_api 发布时间: 20190513
...异 实现类似飞机大战一边滑动一边施放技能 写法如下: 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