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

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

831. 3D模式下使用Tween使模型移动如何写法 [ 70%]

...型移动如何写法 //载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu...

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

832. 关于LayaAir在手机锁屏后出现音频播放按钮的总是 [ 70%]

...来自: ios的,你可以试一下~~直接使用LayaAir,然后随便new Sprite后,锁屏,点亮屏幕就看到效果了! 2017-05-12 0 0 分享 微博 QZONE 微信 183*****291 赞同来自: 是不是被劫持了,改用https 2017-10-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 ...

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

833. Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 [ 70%]

Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 在Android平台使用Spirte.loadImage方法初始Sprite卡死,log中一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码...

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

834. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 70%]

...t事件(已解决) AS3代码如下 package {     import flash.display.Sprite;     import flash.events.Event;     import flash.net.Socket;          public class TestWebSocket extends Sprite     {         public var s:Socket;                  public function TestW...

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

835. 使用clone()或instantiate()方法添加sprite3D角色时, 手中武器不跟随手移动. 但使用getRes()方法导入sprite3D时绑定在手上的武器可正常跟随 [ 70%]

使用clone()或instantiate()方法添加sprite3D角色时, 手中武器不跟随手移动. 但使用getRes()方法导入sprite3D时绑定在手上的武器可正常跟随 使用clone()或instantiate()方法添加sprite3D角色时, 手中武器不跟随手移动. 但使用getRes()方法导入sprite...

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

836. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 70%]

...ya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete));...

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

837. 挂载物体的3D变换问题 [ 70%]

...r cylinderMesh:CylinderMesh=new CylinderMesh(0.05,2,8); var cylinder3D:MeshSprite3D=new MeshSprite3D(cylinderMesh); cylinder3D.transform.translate(new Vector3(3,0,0),true); cylinder3D.transform.localScale = new Vector3(2,2,2); cylinder3D.transform.localRotationEuler = new Vector3(90,90,90); role.get...

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

838. timer.loop帧率高于物理帧率移动父级导致子物体本地坐标异常 [ 70%]

...(!this.cubeP){             this.cubeP = this.scene.addChild(new Laya.Sprite3D());             this.cube = this.cubeP.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));             let rigidbody = this.cube.addComponent(Laya.Rigidbody3D);             rigid...

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

839. 求解clip的切片得到的单个width为0 [ 70%]

...件 Runtime照着视频做运行不了,求解 laya idc 下能否给单个sprite节点指定动画 运用Sprite的属性blendMode为"destination-out"时得到黑圈,与引擎示例中的效果不同,想知道为什么 单个场景加载的时候,使用的Scene3D.load方法的第一个例子...

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

840. 摄像机的移动和旋转(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 70%]

...转 ###### **version :2.7.0beta Update:2020-6-11** ​ 摄像机继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 ​ 移动摄像机: ```typescript //...

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