大约有 332 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(165) Laya3.0_api(81) laya_api(28) Laya3.0_文档(19) Laya2.0_文档(18) Laya2.0_api(17) Laya_示例(4)
...AMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) { // lv.addChild(sp); // console.log("添加预制体"); ...
来源: Laya_社区 发布时间: 20220506
... var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D; if(_enemy.layer==6) { if(this.enemy!=null)return console.log("检测到敌人"); ...
来源: Laya_社区 发布时间: 20231120
...{ 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
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:打地鼠 AS、JS、TS版本 Demo! LayaAirIDE下如何使用mask...
来源: Laya_社区 发布时间: 20200903
...步试运行就报错了。 代码: //仓库原型 warehouse1 = Laya.MeshSprite3D.load("model/warehouse/1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); warehouse1.name = "仓...
来源: Laya_社区 发布时间: 20171219
... 请问有没有方法能够获取“鼠标是否处于按下状态”? sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 请问在layaIDE里,怎么调用微信小程序API 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. TextInput重写onF...
来源: Laya_社区 发布时间: 20170627
...lass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次...
来源: Laya3.0_文档 发布时间: 20251010
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 使用3D时候,Property 'getCompo...
来源: Laya_社区 发布时间: 20171203
...同一个节点只能添加此类型的脚本一次 owner owner: Sprite | Sprite3D Overrides Component.owner Defined in laya/components/Script.ts:14 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中...
来源: Laya3.0_api 发布时间: 20231115