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

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

741. sprite做的按钮点击无反应? [ 72%]

...标事件。你给Sprite手动设置个宽高,再把mouseEnabled设置为true 2017-01-20 0 4 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你的问题有两个方法可以解决,第一个方法如下: var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graph...

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

742. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 72%]

...exture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pic); } this.donghua=true; this.bgimg.x=x; this.bgimg.y=y; this.bgimg.mvtox=movetox; this.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg);     2...

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

743. 摄像机的正交投影和透视投影(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 72%]

...效果。 ```typescript //正交投影属性设置 camera.orthographic = true; //正交垂直矩阵距离,控制3D物体远近与显示大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transfo...

来源: Laya2.0_文档 发布时间: 20210715

744. 聚光灯实时阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 72%]

...e3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprite instanceof SpotLight) { //设置实时阴影的阴影模式 childSprite.shadowMode = ShadowMode.Hard; //设置灯光产生...

来源: Laya2.0_文档 发布时间: 20210715

745. 摄像机的正交投影和透视投影(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 72%]

...效果。 ```typescript //正交投影属性设置 camera.orthographic = true; //正交垂直矩阵距离,控制3D物体远近与显示大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transfo...

来源: Laya2.0_文档 发布时间: 20210714

746. laya.ui.List_API3.0 [ 72%]

...源。 list.pos(100, 100);//设置 list 的位置。 list.selectEnable = true;//设置 list 可选。 list.selectHandler = new Handler(this, onSelect);//设置 list 改变选择项执行的处理器。 Laya.stage.addChild(list);//将 list 添加到显示列表。 } private function onSelect(index:in...

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

747. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 72%]

...s:306 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:182 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

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

748. 针对2.0.0 beta5 setLoadingPage 做增强 [ 72%]

...景进度回调 */ openScene(url = null, otherHandler = null, closeOther = true, param = null, complete = null, progress = null) { if (!url) return if (otherHandler === null) otherHandler = this._promiseHandler if (!this._loadScene) { Laya.timer.loop(10, this, this.openScene, [url, otherHandler, clo...

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

749. 骨骼动画的多纹理疑问 [ 72%]

...的play事件templateAPI里没有找到,另外第二个参数,我改成true也没发现有什么变化,第二个参数什么作用的,原来我以为是只重复执行意思,但是去掉括号里的第二个参数,动画没发生变化,照常循环动画,谢谢,我是无经验者...

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

750. stage. renderingEnabled = false 停止渲染后 如何恢复 [ 72%]

...tage. renderingEnabled = false 停止渲染后 如何恢复 重新设置为true 后。 ios 出现了一个线程上的错误! 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: ...

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