大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0127 秒)
Laya_社区(2361) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...te function omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.play(0,false);//设置初始位置 mArmature.index=this.index; mArmature.pos(500,500) } private function onClick():void { mArmature.play("stand",tr...
来源: Laya_社区 发布时间: 20170509
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115
...置都做不了 var scene:Scene=Scene.load("LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera; ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read property 'viewportPointToRay' of null" 附件 : --> H5Dev.rar 20...
来源: Laya_社区 发布时间: 20180415
关于多点触控e.touches问题 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onCtrlMoveRockerTouchDown); function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); this.ctrlMoveRockerPosX...
来源: Laya_社区 发布时间: 20171204
...侧。没影响。但是方向锁开开就出问题了。我用的是Laya.stage.screenMode = "horizontal"。 2017-11-02 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: https://layaair.ldc.layabox.co ... scape,可以看一下官方引擎事例 2017-11-03 0 1 分享 微博 QZONE 微信 ljy32...
来源: Laya_社区 发布时间: 20171102
...的ts2D示例项目,仅在GameUI.ts的构造函数里加了一句 Laya.stage.frameRate = Laya.Stage.FRAME_SLOW 并且为了观察黑屏明显一些在TestScene.scene里加了一张黄色底图 iphone5和iphone7S 的微信环境上100%闪黑屏 附件 : --> test.zip 2018-10-16 添加评论 ...
来源: Laya_社区 发布时间: 20181016
...pt module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { L...
来源: Laya2.0_文档 发布时间: 20210715
...* @param offset * @param speed * */ public function stageShake(callBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void { if(_isShake) return; _isShake = true; var num:int = 0; var offsetArr:Array = [0, 0]; var ...
来源: Laya_社区 发布时间: 20170823
...ple() { //初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf...
来源: Laya_社区 发布时间: 20180424
... Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox....
来源: Laya3.0_api 发布时间: 20231115