大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0051 秒)
Laya_社区(720) Laya3.0_api(672) Laya2.0_api(367) laya_api(298) Laya_示例(150) Laya2.0_示例(114) Laya2.0_文档(107) Laya3.0_文档(54)
...index,直接通过Skeleton类去获取 * @private * 得到帧索引 */ public function get index():int { return _index; }Skeleton继承自Sprite,可以通过getChildByName去获取当前动画的name名称 2016-09-23 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20160923
... * @param index 帧索引 */ public function addLabel(label:String, index:int):void { if (!_labels) _labels = {}; if (!_labels[index]) _labels[index] = []; _labels[index].push(label);...
来源: Laya_社区 发布时间: 20180601
获取Sprite位置问题 class Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动...
来源: Laya_社区 发布时间: 20180427
...个方法,只要输入 funn 自动就给我生成整个函数结构。 public function aa():void{} 这时候光标停留在aa,让你改方法名。其实感觉flashBuilder的效率已经很高了。就是有的时候还是不如其他编辑器,非一般的速度。 附件 : --> 2017-03-09 ...
来源: Laya_社区 发布时间: 20170309
...mport laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class TiledMap_ScrollMap { private var tiledMap:TiledMap; private var mLastMouseX:Number = 0; private var mLastMouseY:Number = 0; private var mX:Number = 0; private var mY:Number = 0; public function TiledMap_ScrollMap...
来源: Laya2.0_示例 发布时间: 20260106
... addChild(automap) 解决方案是修改AutoBitmap类中的public function set clips 实现方法 2016-06-06 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ghgmxeman 相关问题 看了其他引擎才发现 LAYA 真的太...
来源: Laya_社区 发布时间: 20160606
...aya.display.Sprite; import laya.renders.Render; import laya.utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; p...
来源: Laya_社区 发布时间: 20171214
...update里对局部坐标赋值,当父物体运动起来就会有问题 public _lateUpdate(state: Laya.RenderState): void { super._lateUpdate(state); this.gun.transform.localPosition=this.pos; } 2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170531
...关的链接 提交 1 个回复 cuixueying 赞同来自: class () 方法 public static function class(functionRef:Function, fullQulifiedName:String, superClass:Function, miniName:String):void 在JS中,通过Laya.class来定义类,同时可以指定其继承关系。 参数 functionRef:Function ...
来源: Laya_社区 发布时间: 20170221
...置下! /** * 设置是否抗锯齿,只对2D(WebGL)、3D有效。 */ public static var isAntialias:Boolean = false;开启设置为true! 2017-04-19 0 0 分享 微博 QZONE 微信 25 赞同来自: 好像开启这个抗锯齿的 是在初始化引擎之前开启吗? 2018-05-22 0 0 分享 微博...
来源: Laya_社区 发布时间: 20170419