大约有 2,159 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0067 秒)
Laya3.0_api(672) Laya_社区(472) Laya2.0_api(357) laya_api(289) Laya_示例(150) Laya2.0_示例(112) Laya2.0_文档(98) Laya3.0_文档(9)
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...prite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();/...
来源: Laya3.0_api 发布时间: 20231115
...ram y 绘制的 Y 轴偏移量。 * @return HTMLCanvas 对象。 */ public function drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas { return RunDriver.drawToCanvas(this, _renderType, canvasWidth, canvasHeight, offsetX, offsetY); } 2017-05-10 1 0 分...
来源: Laya_社区 发布时间: 20170510
...aya/media/VideoTexture.ts:109 Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...
来源: Laya_社区 发布时间: 20160722
...过来native调用js代码不知道怎么弄。我看java层有ExportJavaFunction这个类,里面的方法好像是java调用js方法的,但是不知道方法参数怎么写。比如 callMethod(string,string,string) 这个方法,三个参数代表什么? 2019-05-15 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20190515
.../192.168.1.21:90/Game_Config.xml",Handler.create(this,onLoadered)); public function onLoadered(data:*):void { trace("data:" + data); } 来完成文件的加载,在文件加载完会返回xml的内容信息,这是你可以解析加载的xml内容 2016-11-20 0 0 分享 微博 QZONE 微信 wangxu...
来源: Laya_社区 发布时间: 20161120
...周期。 * @return 指定时间的插补属性的值。 */ public static function elasticOut(t:Number, b:Number, c:Number, d:Number, a:Number = 0, p:Number = 0):Number { /*[DISABLE-ADD-VARIABLE-DEFAULT-VALUE]*/ var s:Number; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;...
来源: Laya_社区 发布时间: 20180104