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

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

211. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 73%]

...yaSample.bb的num console.info(s); }, 1000); } } class Child{ private _num:string; public num(n:string){ this._num = n; } public shuchu(){ return this._num; } } new LayaSample(); 2018-08-05 3 0 分享 微博 QZONE 微信 手撕腊鸭 赞同来自: 138*****417 、呆到八得 、陈斌 、小卡 ...

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

212. 静态protobuf [ 73%]

...  } //2 message UndefinedResponse {  }  //100001 message LoginRequest { string userId = 1; string password = 2;  } //100002 message LoginResponse { bool ok = 1;  } 发消息时比较简单 let msg = msgScheme.AMsg.create({ head: msgScheme.AMsg.Head.Login_Request, loginRequest: { userId: this.Te...

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

213. laya.ui.VSlider [ 73%]

...bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对...

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

214. laya.display.FrameAnimation [ 73%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...

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

215. Scene.load加载的时候无法正确的识别ResourceVersion [ 73%]

...是这样处理URL的: public static function addVersionPrefix(originURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return originURL; } 在version.json,也就是manifest...

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

216. laya.physics.PhysicsDebugDraw [ 73%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,同时也可以手动调用...

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

217. SCALE_FIXED_WIDTH适配屏幕的问题 [ 73%]

...       }         private getGets() {             var tempUrl: String = Laya.Browser.window.location.href;             var u = tempUrl.split("?");             var gets: Object = {};             if (u[1]) {                 u = u[1].split("&");           ...

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

218. laya.ui.ColorPicker_API3.0 [ 73%]

...Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in la...

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

219. 绘画圆角矩形的工具,直接用,不用自己去算 [ 73%]

...mber, y:Number, width:Number, height:Number, roundRadius:Number, fillColor:String, borderColor:String = null, borderWidth:Number = 0):DrawPathCmd { var paths:Array = []; paths.push(["moveTo", roundRadius, 0]); paths.push(["lineTo", width - roundRadius, 0]); paths.push(["arcTo", width, 0, width, roun...

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

220. laya.ui.VScrollBar [ 73%]

...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 Component cacheAs : String 指定显示对象是...

来源: laya_api 发布时间: 20170929