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

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

1551. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 69%]

...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

1552. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 69%]

... 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

1553. Panel滚动条滑块位于最下方 [ 69%]

...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

1554. laya.particle.Particle2D_API3.0 [ 69%]

...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

1555. laya.media.SoundNode_API3.0 [ 69%]

...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

1556. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 69%]

...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

1557. laya.map.GridSprite_API3.0 [ 69%]

...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

1558. 关于LayaBox 2.0后loadImage改了后要用什么来绘制base64 [ 69%]

...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

1559. 移动游戏舞台 原来的坐标移位 [ 68%]

...过scrollRect,或者使用基于区块的组合地图。你直接移动stage的做法不可取,就算要移动,也不要直接移动stage,就算移动的是其他容器,也请用 container.x,而不是 container._x。   总之,查看实时的人物ui坐标,和他在matter.js中的坐...

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

1560. [图文]解决JS打包和打包后APP黑屏的问题 [ 68%]

...现在,我已经将index.html的方向设置成竖向,下一步是确认我stage是竖向的:   Laya.stage.screenMode = "vertical"; 解决完方向问题我们再来解决JS问题 首先我们先release:   点击确定后,刷新一下,就可以看见有一个release的文件夹,如图:   我们...

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