大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2254) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
... Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); //正方体 var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(1.5, 0.25, 0.6); box.transform.rotate(new La...
来源: Laya_示例 发布时间: 20251209
使用clone()或instantiate()方法添加sprite3D角色时, 手中武器不跟随手移动. 但使用getRes()方法导入sprite3D时绑定在手上的武器可正常跟随 使用clone()或instantiate()方法添加sprite3D角色时, 手中武器不跟随手移动. 但使用getRes()方法导入sprite...
来源: Laya_社区 发布时间: 20180206
...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
...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
...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
...件 Runtime照着视频做运行不了,求解 laya idc 下能否给单个sprite节点指定动画 运用Sprite的属性blendMode为"destination-out"时得到黑圈,与引擎示例中的效果不同,想知道为什么 单个场景加载的时候,使用的Scene3D.load方法的第一个例子...
来源: Laya_社区 发布时间: 20170804
...转 ###### **version :2.7.0beta Update:2020-6-11** 摄像机继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //...
来源: Laya2.0_文档 发布时间: 20210714
...转 ###### **version :2.7.0beta Update:2020-6-11** 摄像机继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //...
来源: Laya2.0_文档 发布时间: 20210715
...(!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
回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...
来源: Laya_社区 发布时间: 20180105