• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 177 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)

11. 如何与服务端建立连接 [ 84%]

...on(Event.ERROR,this,errorHandler); 回到方法 成功失败。。 private function openHandler(event:Object = null):void{//正确建立连接; }private function receiveHandler(msg:Object = null):void{///接收到数据触发函数}private function closeHandler(e:Object= null):void{//关闭事件...

来源: Laya_社区 发布时间: 20180514

12. laya.filters.ColorFilter [ 79%]

...Properties Show Inherited Public Properties PropertyDefined By _filter : Function[static] FilterPublic Methods  MethodDefined By  ColorFilter(mat:Array = null) 创建一个 ColorFilter 实例。 ColorFilter  adjustBrightness(brightness:Number):ColorFilter 调整亮度 ColorFilter  adjustCol...

来源: Laya2.0_api 发布时间: 20190513

13. laya.utils.Utils_API3.0 [ 78%]

...n toAngle toHexColor toRadian _gid _pi _pi2 Legend Object literal Variable Function Type alias Class Class with type parameter Enumeration Interface Static method

来源: Laya3.0_api 发布时间: 20231115

14. laya.ui.AdvImage [ 77%]

...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...

来源: Laya2.0_api 发布时间: 20190513

15. laya.resource.HTMLCanvas_API3.0 [ 76%]

...建 Parameters url: string Returns boolean 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

16. JSON文件加载成功后,怎么解析成Object对象 [ 76%]

...or OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.co...

来源: Laya_社区 发布时间: 20180227

17. 如何把加载好的二进制数据成Texture? [ 75%]

...e = { type: "application/octet-binary" }; var blobFragment = []; function loadBytes(fragment: ArrayBuffer, onload: any = null): Laya.HTMLImage { var blob; try { blobFragment[0] = fragment; blob = new Blob(blobFragment, blobType); } catch (e) { var win: any = window; win.BlobBuilder = win.B...

来源: Laya_社区 发布时间: 20170502

18. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 74%]

...均可以设置一个回调 Laya.LoaderManager.prototype["_loadAssets"] = function (arr, complete, progress, type, priority, cache, group) { (priority === void 0) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize =...

来源: Laya_社区 发布时间: 20171226

19. UTF8格式通信的问题 [ 73%]

...是nodejs 对于已经utf8后的应该怎么处理?ws.on('message', function incoming(message) 2016-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 使用output.writeUTFBytes(mes...

来源: Laya_社区 发布时间: 20160801

20. 模板@prop如何使用枚举 [ 73%]

...的枚举 enum ENUM_Effect{ null=0, popupEffect = 1, closeEffect = 2 };  function ENUM_ChangeString(enumObject) { let reslut=""; for (var entry in ENUM_Effect) { reslut=reslut+","+entry; }  return reslut; } /** @prop {name:targetEffect, tips:"UI特效", type:ENUM_Effect, default:null}*/ private ta...

来源: Laya_社区 发布时间: 20191029