大约有 1,726 项符合查询结果, 库内数据总量为 30,934 项。 (搜索耗时: 0.0056 秒)
Laya_社区(1417) Laya3.0_api(94) Laya2.0_文档(77) Laya3.0_文档(50) Laya_示例(36) laya_api(32) Laya2.0_api(19) Laya2.0_示例(1)
...报错 附件包含导出的资源文件,麻烦帮忙看下 Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); })); 报错信...
来源: Laya_社区 发布时间: 20200104
... 获取播放器当前动画的节点数量。 KeyframeAnimations owner : Sprite3D[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : AnimationTem...
来源: laya_api 发布时间: 20170603
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20250103
... CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNO...
来源: Laya_社区 发布时间: 20200217
...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...
来源: Laya2.0_文档 发布时间: 20210715
...在unity里面LayaRun预览没有任何问题,也成功导出了Scene和Sprite3D。但是把这些放到项目bin文件夹下之后,对着文档进行更改之后,F5调试就报错了。 2019-03-18 0 0 分享 微博 QZONE 微信 由纪 赞同来自: 同样遇到这样的问题,请问该怎...
来源: Laya_社区 发布时间: 20190317
...form.rotate(new Vector3(-30,0,0),true,false); var map:Sprite3D = Sprite3D.load("3d/zhuoZi/ZhuoZi.lh"); map.transform.localScale = new Vector3(0.1, 0.1, 0.1); scene.addChild(map); 附件 : --> 2017-03-14 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170314
...ader。 private loadEffectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧================= var myeffect:Laya.Sprite3D = effe...
来源: Laya_社区 发布时间: 20190404
...例组件。 Component3D owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D started : Boolean是否已执行start函数。Component3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Component3D() 创建一个新的 Componen...
来源: laya_api 发布时间: 20170929
... 2.3 Renders 图2-5 Renders渲染器实际上是该LOD层级保存网格的Sprite3D对象。通常情况下这是具有LOD 组件的Sprite3D对象的子对象 Renders渲染器可以添加多个渲染对象在同一个LOD层级可以渲染多个对象 3.导入LOD网格(实验性) 在美术软件...
来源: Laya3.0_文档 发布时间: 20240910