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

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

871. 通过PrimitiveMesh创建简单Mesh(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 66%]

...= new Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Vector3(0, 45, 0), false, false); //球体 var sphere:MeshSprite3D = sprite3D.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(0.25, 20, 20))) as MeshSprite3D; sphere.transform.position = new Vector3(1.0, 0.25, 0.6); //圆柱体 var cylinde...

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

872. laya.d3.core.light.DirectionLight [ 66%]

...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...

来源: laya_api 发布时间: 20170929

873. laya.events.MouseManager_API3.0 [ 66%]

...Event setCapture Properties disableMouseEvent disableMouseEvent: boolean = false Defined in laya/events/MouseManager.ts:34 是否禁用除 stage 以外的鼠标事件检测。 mouseDownTime mouseDownTime: number = 0 Defined in laya/events/MouseManager.ts:36 鼠标按下的时间。单位为毫秒。...

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

874. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 66%]

...(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMo...

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

875. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 66%]

...Vector3(0, 45, -60)); camera.transform.rotate(new Laya.Vector3(0, 180, 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1...

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

876. 鼠标交互-Hold [ 66%]

...如果正在hold,则播放放开的效果 if (isApeHold) { isApeHold = false; Tween.to(ape, { "scaleX": 0.8, "scaleY": 0.8 }, 300); } else // 如果未触发hold,终止触发hold Laya.timer.clear(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprit...

来源: Laya_示例 发布时间: 20251209

877. Android替换游戏启动logo看不到设置的图片 [ 66%]

...自定义加载进度 1、设置config.js的 loadingView.loadingAutoClose=false;//false:自定义进度条 ture:使用laya默认进度条 2、设置加载进度(需要写在项目代码内,并非config.js内) var per=0; loadingView.loading(per);//per是0到100的整数 当数字等于100...

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

878. ts 中能使用 装饰器吗 [ 66%]

... 快雪时晴 赞同来自: flys 可以的 tscongfig.json中noEmitHelpers=false 另外如果你用的 layaair版本在2.4及以上 需要自己安装 tslib npm install --save tslib 2020-03-09 1 3 分享 微博 QZONE 微信 flys 赞同来自: 有大佬安装过 tslib 吗?我实在是没办法...

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

879. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 66%]

...= new Vector3(0, 1.75, 2); teapot.transform.rotate(new Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat:PBRStandardMaterial = new PBRStandardMaterial(); //开启该材质的反射 pbrMat.enableReflection = true; //设置材质的金属度,尽量高点,反射效果更明显 pb...

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

880. 骨骼动画-Spine事件 [ 66%]

...; if (mCurrIndex >= aniNum) { mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } onEvent(e) { const Tween = Laya.Tween, Handler = Laya.Handler; let tEventData = e; Laya.stage.addChild(mLabelSprite); mLabelSprite.pos(mStartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px A...

来源: Laya2.0_示例 发布时间: 20251209