大约有 112 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
...问题,还是使用问题 var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh")); var ani = hero.addComponent(Laya.SkinAnimations); ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani"); ...
来源: Laya_社区 发布时间: 20161205
...ort { ui } from "./../ui/layaMaxUI"; import Scene3D = Laya.Scene3D; import Sprite3D = Laya.Sprite3D; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方式,继承式...
来源: Laya_社区 发布时间: 20190618
...lic function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function co...
来源: Laya_社区 发布时间: 20171011
...和收回状态。 参考代码如下:package { import flash.display.Sprite; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.FocusEvent; import flash.events.KeyboardEvent; import flash.text.TextField; import flash.text.TextFieldType; import flash.ui.Keyboard...
来源: Laya_社区 发布时间: 20151225
...thographic = true; camera.orthographicVerticalSize = 5; this.effRes = Laya.Sprite3D.load(resUrl); this.effRes.on(Laya.Event.HIERARCHY_LOADED, this, function(){ this.eff1 = scene.addChild( Laya.Sprite3D.instantiate(this.effRes)); this.eff1.transform.position = new Laya.Vector3(0,0,50); this.eff1.tran...
来源: Laya_社区 发布时间: 20180503
...mera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya....
来源: Laya_社区 发布时间: 20200917
laya中js 如何实现Sprite类继承 求问题解决方法 主文件:a.js 组件文件:Role.js a.js文件代码: this.Role = new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(t...
来源: Laya_社区 发布时间: 20181012
...ya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写应该没问题吧? 155*****924 • 2019-05-16 15:18 Utils3D._mulMatrix...
来源: Laya_社区 发布时间: 20190516
...asObj,String); ================== AS: var asObj:String ="123"; if(asObj as Sprite) { trace("走强转成功的逻辑!"); }else{ trace("走强转失败的逻辑!"); } JS: if(__DEBUGAS__(asObj,Sprite)){ trace("走强转成功的逻辑!"); }else{ trace("走强转失败的逻辑!"); } 2015...
来源: Laya_社区 发布时间: 20151203
...osition = new Laya.Vector3(0,4,15); //载入并显示3D建筑 var map:Laya.Sprite3D = Laya.Sprite3D.load("New Scene.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4, -15); //控制摄像头移动 camera.addComponent(CameraMoveScript); } } new GameMain(); uni...
来源: Laya_社区 发布时间: 20170319