大约有 122 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0044 秒)
...c class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya....
来源: Laya2.0_文档 发布时间: 20210715
...对象 就能正常 。 部分代码如下,动画能正常播放。 this.role = new Laya.Animation(); this.role.on(Laya.Event.MOUSE_DOWN, this, this.onDrag); 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20180718
调用 Laya.Pool.getItemByCreateFun 报错 /** @prop {name:rolePrefabs, tips:"英雄角色", type:Vector, xCount:1, sType:Prefab}*/ public rolePrefabs: Laya.Prefab[]; //TODO 报错 let role2 = Laya.Pool.getItemByCreateFun("role", this.rolePrefabs[0].create, this.rolePrefabs[0]); 附件 : --> BugRea...
来源: Laya_社区 发布时间: 20190304
...stage.screenMode = Laya.Stage.SCREEN_NONE; var resUrl = "../bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.position = new Laya.Vector3(0, 0, 10); camera.transform.rotat...
来源: Laya_社区 发布时间: 20180503
...行时报错: var startVec:Laya.Vector2 = new laya.d3.math.Vector2(this._role.x, this._role.y); 2016-08-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 第一步:index.html下导入d...
来源: Laya_社区 发布时间: 20160830
...rsects方法造成sprite消失 //碰撞检测 for(var i:number=0;i<this.roleBox.numChildren;i++){ let role:Laya.Animation=this.roleBox.getChildAt(i) as Laya.Animation // 只要去掉下面这行代码就不会消失 let isIntersect:boolean=this.home.player.getBounds().intersects(role.getBounds())...
来源: Laya_社区 发布时间: 20171111
...上用下面方法把.lh的路迳传过去,内存也还是没有改变 role.destroy(); role = null; assetsDispose(url) /**释放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,ty...
来源: Laya_社区 发布时间: 20170904
... 这是在跟着视频做飞机大战时出现的,添加敌人时,把role.ts中的laya.init()注释掉后,把init():void改成public init():void之后,启用调试工具无法正常运行,然后动画播放也会自动停止 附件 : --> 2018-07-13 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180713
...ss LayaAir3D { /*3D场景*/ private scene:Laya.Scene; /*3D角色*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCA...
来源: Laya_社区 发布时间: 20180307
...识,管理员看看思路是不是这样的(实现挂点): body = role.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimat...
来源: Laya_社区 发布时间: 20170819