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

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

331. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 78%]

...;} this._padding = v; if(this.text){ this.createFnt(this.text); } } public get padding(): number{ return this._padding; } /** * 文本内容 */ public set text(v: string) { if (v === this._text) { return; } this._text = v; this.createFnt(v); } public get text(): string { return this._text; } /** * ...

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

332. laya.components.AnimationClip2D_API3.0 [ 78%]

...n laya/resource/Resource.ts:19 是否开启debug模式 Accessors cpuMemory get cpuMemory(): number Inherited from Resource.cpuMemory Defined in laya/resource/Resource.ts:124 内存大小。 Returns number destroyed get destroyed(): boolean Inherited from Resource.destroyed Defined in laya/resource/R...

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

333. laya.resource.Resource [ 78%]

...ent(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getLoadedResourceByIndex(index:int):Resource[static] 通过索引返回本类型已载入资源。 Resource  getLoadedResourcesCount():int[static] 本类型已载入资源个数。 Resource hasListener(type:String):Boolean...

来源: laya_api 发布时间: 20170422

334. laya.utils.Browser_API3.0 [ 78%]

...th container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71 Static PLATFORM_IOS PLATFORM_IOS: number = 2 Defined in laya/utils/Browser.ts...

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

335. 求HTTP相关的文档或者例子谢谢了 [ 78%]

...六步:设置提交变量sine的模式(POST:用于大量数据的提交,GET:用于少量数据的提交)默认GET, urlRequest.method=URLRequestMethod.GET; //开始请求加载 urlLoader.load(urlRequest); //请求加载过程中触发的6个事件 urlLoader.addEventListener(Event.OPEN,openHandl...

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

336. laya.d3.physicscannon.shape.CannonCompoundColliderShape_API3.0 [ 78%]

...n type Methods _setScale addChildShape bindRigidBody clone cloneTo destroy getChildShapeCount removeChildShape updateLocalTransformations Constructors constructor new CannonCompoundColliderShape(): CannonCompoundColliderShape Overrides CannonColliderShape.constructor Defined in laya/d3/physicsCannon...

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

337. laya.resource.HTMLCanvas [ 78%]

...) 根据指定的类型,创建一个 HTMLCanvas 实例。 HTMLCanvas  _getSource():*[override] HTMLCanvas  clear():void 清空画布内容。 HTMLCanvas  destroy():void[override] 销毁。 HTMLCanvas  getContext(contextID:String, other:* = null):Context 获取 Canvas 渲染上下文。 HTM...

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

338. laya.d3.physics.shape.CapsuleColliderShape [ 78%]

...mber  [read-only] 获取长度。 Implementation     public function get length():Numberorientationproperty orientation:int  [read-only] 获取方向。 Implementation     public function get orientation():intradiusproperty radius:Number  [read-only] 获取半径。 Implementation  ...

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

339. laya.ui.UIComponent [ 78%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bottom : Number 从组件底边到其内容区域底边之间...

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

340. 使用/*[COMPILER OPTIONS:normal]*/来编译分包无法生成Dictionary类的定义 [ 78%]

...e; Stage; var a:Dictionary = new Dictionary(); a.set('test','aa'); trace(a.get('test')); } } }生成的分包test.js(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; var Stage=laya.display.Stage,TestA...

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