大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0119 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...ropertyexposure:Number 获取曝光强度。 Implementation public function get exposure():Number public function set exposure(value:Number):voidrotationproperty rotation:Number 获取曝光强度。 Implementation public function get rotation():Number public function ...
来源: Laya2.0_api 发布时间: 20190513
...am aniIndex 动画索引 * @param frameIndex 帧索引 * @return */ public function getGrahicsDataWithCache(aniIndex:int, frameIndex:Number):Graphics { if(_graphicsCache[aniIndex] && _graphicsCache[aniIndex][frameIndex]){ return _graphicsCache[aniIndex][frameIndex]; } return null; } 2、Text...
来源: Laya_社区 发布时间: 20180820
...有东西;当三秒后游戏结束,点重新开始,飞机才出来 function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya....
来源: Laya_社区 发布时间: 20180911
...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...
来源: laya_api 发布时间: 20170929
...ponent3D 添加指定类型组件。 Sprite3D clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node clone():* 克隆。 Sprite3D cloneTo(destObject:*):void 克隆。 Sprite3D contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点...
来源: laya_api 发布时间: 20170929
...is not a function问题 打小人的游戏 其中 this.gameRef 用于在Character和Bullet类的实例中访问Game类中的bulletsBox和charactersBox 在Character和Bullet类的init函数,把this.gameRef传入到每个Character和Bullet对象 现在问题是 如果敌人不出现 发射子弹...
来源: Laya_社区 发布时间: 20171124
...是否支持播放指定格式视频。 Video clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:RenderContext, x:Number, y:Number):void...
来源: laya_api 发布时间: 20170929
...otoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg A...
来源: Laya_社区 发布时间: 20180130
...个新的对象返回。 Pool getItemByCreateFun(sign:String, createFun:Function):*[static] 根据传入的对象类型标识字符,获取对象池中此类型标识的一个对象实例。 当对象池中无此类型标识的对象时,则使用传入的创建此类型对象的函数,新建...
来源: laya_api 发布时间: 20170929
请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...
来源: Laya_社区 发布时间: 20170725