大约有 103 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...于3d场景下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.Blin...
来源: Laya_社区 发布时间: 20190717
...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...
来源: Laya2.0_文档 发布时间: 20210715
...{ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex) { material.albedoTexture = tex; })); box.meshRenderer...
来源: Laya2.0_文档 发布时间: 20210714
...(最新版本:1.7.16) 招聘:H5游戏开发 坐标:深圳南山 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? Tween没效果,对...
来源: Laya_社区 发布时间: 20171229
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? 求高人分享使用protobuff框架...
来源: Laya_社区 发布时间: 20171117
...,试图用Quaternion.rotationLookAt生成一个Quaternion直接赋值给Sprite3D的rotation。发现结果怎么都不对,跟到Matrix3x3.lookAt里看实现,生成三个向量之后赋值给矩阵处貌似有问题,该为如图所示(转置)之后修复。 另外,Quaternion.rotationLookAt...
来源: Laya_社区 发布时间: 20180228
...ng 在laya3D中,网格模型数据是通过laya.d3.core.MeshSprite3D展示的,他里面有两个极其重要的属性就是laya.d3.core.MeshFilter(网格过滤器)和laya.d3.core.meshRender(网格渲染器)。 1.laya.d3.core.MeshFilter(网格过滤器):这个负责数据,你用...
来源: Laya_社区 发布时间: 20161019
...渲染。 */ readonly isRender:boolean; 那么实际应用就是找到该sprite3D的网格子节点SkinnedMeshSprite3D,获取其shinnedMeshRenderer直接点出属性isRender.完事 let mesh = this.owner.getChildAt(1) as Laya.SkinnedMeshSprite3D; console.log(mesh.skinnedMeshRenderer.isRender); ...
来源: Laya_社区 发布时间: 20181009
... export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property(String) public text: string = ""; @property(Laya.Image) public image: Laya.Image = null; constructor() { super(); } } 附件 : --> 2023-04-12 添加评...
来源: Laya_社区 发布时间: 20230412
...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均...
来源: Laya3.0_文档 发布时间: 20251010