大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0129 秒)
Laya_社区(2354) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...era.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会...
来源: Laya_社区 发布时间: 20171012
... true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this.isClick = true; //如果点击...
来源: Laya_社区 发布时间: 20210122
...x 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new...
来源: Laya_社区 发布时间: 20161103
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect s...
来源: Laya3.0_api 发布时间: 20231115
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D isMusic loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playEvent rotation scaleX scaleY sce...
来源: Laya3.0_api 发布时间: 20231115
...nventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab...
来源: Laya2.0_文档 发布时间: 20210715
...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
...p: Laya.Sprite = new Laya.Sprite();sp.loadImage(data, 0, 0, 200, 200);Laya.stage.addChild(sp); 但现在2.0的loadImage 的 data 就只会被默认为url了, var sp: Laya.Sprite = new Laya.Sprite();sp.loadImage(data);Laya.stage.addChild(sp); 本来1.0时loadImage这个方法中的data参数不...
来源: Laya_社区 发布时间: 20200111
...过scrollRect,或者使用基于区块的组合地图。你直接移动stage的做法不可取,就算要移动,也不要直接移动stage,就算移动的是其他容器,也请用 container.x,而不是 container._x。 总之,查看实时的人物ui坐标,和他在matter.js中的坐...
来源: Laya_社区 发布时间: 20170719
...现在,我已经将index.html的方向设置成竖向,下一步是确认我stage是竖向的: Laya.stage.screenMode = "vertical"; 解决完方向问题我们再来解决JS问题 首先我们先release: 点击确定后,刷新一下,就可以看见有一个release的文件夹,如图: 我们...
来源: Laya_社区 发布时间: 20170624