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

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

371. 摄像机的移动和旋转(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 81%]

... new Camera(0, 0.1, 100) //移动相机,设置相机的向z轴移动 3。true代表是局部坐标,false是相对世界坐标。 camera.transform.translate(new Vector3(0, 0, 3),false); //加载到场景 scene.addChild(camera); ``` ​ 旋转摄像机: ```typescript //旋转相机。局部坐...

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

372. 灯光-方向光 [ 81%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transfor...

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

373. 在最新的IOS14上,UI的lighter模式渲染不正确,背景是黑色的,无法实现透明 [ 81%]

...nderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.DST_ALPHA,true); } 替换为: static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.ONE,true); }      非源码版在laya.core.js里找到 static BlendAdd(gl) { WebGLContext.setBlendFunc(gl, g...

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

374. laya.d3.component.animation.CameraAnimations [ 81%]

...how Inherited Public Properties PropertyDefined By  addMode : Boolean = true叠加模式。CameraAnimations currentAnimationClipIndex : int[read-only] 获取播放器的动画索引。 KeyframeAnimations currentFrameIndex : int[read-only] 获取播放器帧数。 KeyframeAnimations destroyed :...

来源: laya_api 发布时间: 20170603

375. laya.particle.ParticleSetting [ 81%]

...ting  colorComponentInter : Boolean = falsefalse代表RGBA整体插值,true代表RGBA逐分量插值ParticleSetting  disableColor : Boolean = falsefalse代表使用参数颜色数据,true代表使用原图颜色数据ParticleSetting  duration : Number = 1粒子持续时间(单位:秒)Par...

来源: Laya2.0_api 发布时间: 20190513

376. Tween.to 执行失败 [ 81%]

...) ; } function onWalk(dir){ switch(dir){ case "up": hero_p1.roleAni.play(0,true,"p1_walk_up"); Laya.stage.addChild(hero_p1.roleAni); break ; case "down": hero_p1.roleAni.play(0,true,"p1_walk_down"); Laya.stage.addChild(hero_p1.roleAni); break ; case "left": hero_p1.roleAni.play(0,true,"p1_walk_left"...

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

377. 扩展性问题 [ 81%]

...个能不能支持可扩展吧 Object.defineProperty(o,name,{configurable:true,get:getfn,set:setfn,enumerable:false}); 比方说加上configurable:true这个字段 让开发者自己可以 去扩展getset函数啊 现在没有这个字段的话 开发者没办法重写getset函数 手动修改源码...

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

378. 如何知道一个dialog是否已关闭? [ 81%]

...管有没有再调用close,dialog的destroyed 都为false,isPopup都为true。 有什么属性可以知道这个dialog是否已关闭?    2017-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying ...

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

379. List选中项下滚会变 [ 81%]

...}; } this.sList.dataSource = data;//批量赋值 this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"Se...

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

380. 请教如何实现完美的LoopList?尝试了下总是有倒带的卡顿动作隐藏不掉 [ 81%]

...带 private onLoop(){              if(this.WheelList.visible==true)             {                 this.WheelList.set_visible(false);                 this.WheelList2.set_visible(true);                  this.WheelList.scrollBar....

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