大约有 523 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(428) Laya2.0_文档(51) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...t(Laya.PhysicsCollider) as Laya.PhysicsCollider; let mesh:Laya.Mesh = Laya.loader.getRes("res/Conventional/Library/unity default resources-Cube.lm"); let physhape: Laya.MeshColliderShape = new Laya.MeshColliderShape(); physhape.mesh = mesh; phy.colliderShape = physhape; 2019-10-28 0 1 分享 微博 ...
来源: Laya_社区 发布时间: 20191026
....timer.loop(10,this,draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth/2,texture.height/2); IconSpr.graphics.drawTexture(temp,0,0,temp.sourceWidth,temp.height); temp.destro...
来源: Laya_社区 发布时间: 20180118
...,为该模型添加碰撞器失败。 onComplete(){ this.scene1 = Laya.loader.getRes("3D/LayaScene_map/Conventional/map.ls"); Laya.stage.addChild(this.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localScale = scale; let a = ...
来源: Laya_社区 发布时间: 20190620
... ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh var sphereMesh:M...
来源: Laya2.0_文档 发布时间: 20210714
...信工具调试库 2.2.1 最新 都是最新的 加载方式:Laya.loader.create 获取方式:scene = Laya.loader.getRes(path) as Scene; 2018-08-02 1 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以 2018-08-02 0 0 分享 微博 QZONE 微信 承 赞同来自: 真的可以么 ...
来源: Laya_社区 发布时间: 20180802
...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...
来源: Laya_社区 发布时间: 20180307
... 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: var rolde = Laya.loader.getRes("res/Scene3d/LayaScene_SampleScene/Conventional/role.lh"); Laya.stage.addChild(rolde); 模型要加在3d场景上 不要加在stage上 2020-01-13 0 0 分享 微博 QZONE 微信 为什么被折叠? ...
来源: Laya_社区 发布时间: 20200113
...资源预加载之后,使用之前加上: var texture:Texture = Laya.loader.getRes(e.url); texture.bitmap.enableMerageInAtlas = false; rgxianzhan • 2017-10-23 19:39 不能在加载的时候设置大图合集么,使用的地方真不少 Monica • 2017-10-23 20:01 @rgxianzhan:关闭大图合...
来源: Laya_社区 发布时间: 20171023
...NONE; //开启统计信息 Stat.show(); //预加载角色动画资源 Laya.loader.create("monkey/monkey.ls",Handler.create(this,onSceneOK)); } private function onSceneOK():void { //添加3D场景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中...
来源: Laya2.0_文档 发布时间: 20210715
...认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的脚本旋转,键盘...
来源: Laya_社区 发布时间: 20180410