大约有 339 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
Laya_社区(124) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(36) laya_api(18) Laya_示例(6) Laya3.0_文档(3)
...emByCreateFun("gk2v1",gkpref.create,gkpref); var anim:Laya.Animation = OBJ.getChildByName("NPCdie") as Laya.Animation; anim.source="Anim/z2die.ani"; this.Scene.addChild(OBJ); })); bundle.js:26 lost skin: zombie/z2/z2_0.png ,you may load pics first laya.core.js:22929 lost skin: zombie/z2/z2_1...
来源: Laya_社区 发布时间: 20201022
... tex; })); box.meshRenderer.material = material; var monkey:Sprite3D = res.getChildByName("LayaMonkey") as Sprite3D; //查找节点 var bonePoint:Sprite3D = findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 `...
来源: Laya2.0_文档 发布时间: 20210714
..."LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera; ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read property 'viewportPointToRay' of null" 附件 : --> H5Dev.rar 2018-04-15 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180415
...er.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190605
... <<<<<<<<报错: //飞机 let plane = scene.getChildByName("plane") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController); let collider_shape_box = new Laya.BoxColliderShape(2.5, 0.8, 0.8); collider_shape_box.loc...
来源: Laya_社区 发布时间: 20210101
...e.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize...
来源: Laya2.0_文档 发布时间: 20210715
...n(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.p...
来源: Laya2.0_文档 发布时间: 20210715
...yaAir里的显示对象添加到matter.js里的物理引擎世界里 使用getChildByName()无法得到子节点对象 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 怎么获取对象的坐标 如何识别此对象被destroy了? TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和...
来源: Laya_社区 发布时间: 20190306
...n(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width =...
来源: Laya2.0_文档 发布时间: 20210715
...Texture = tex; })); box.meshRenderer.material = material; var monkey = res.getChildByName("LayaMonkey"); //查找节点 var bonePoint:Sprite3D = this.findChild(monkey,"bonepoint"); //将盒子精灵添加到找到的骨骼节点上 bonePoint&&bonePoint.addChild(box); })); ``` > 节点查找 ```types...
来源: Laya2.0_文档 发布时间: 20210715