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

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

6291. laya.display.Animation_API3.0 [ 34%]

...t();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//设置 animation 对象的属性 x 的值,用于控制 a...

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

6292. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 34%]

...用法: ```javascript //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.dat...

来源: Laya2.0_文档 发布时间: 20210714

6293. laya.ui.WXOpenDataViewer_API3.0 [ 34%]

...op timerOnce toParentPoint updateZOrder fromImage Constructors constructor new WXOpenDataViewer(): WXOpenDataViewer Overrides UIComponent.constructor Defined in laya/ui/WXOpenDataViewer.ts:12 Returns WXOpenDataViewer Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in...

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

6294. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(...

来源: Laya3.0_文档 发布时间: 20251010

6295. laya.components.Widget_API3.0 [ 33%]

... onPreRender onReset onStart onUpdate resetLayout Constructors constructor new Widget(): Widget Overrides Component.constructor Defined in laya/components/Widget.ts:18 Returns Widget Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Compone...

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

6296. laya.ui.Box [ 33%]

...vas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//...

来源: laya_api 发布时间: 20170929

6297. laya.ui.UIComponent_API3.0 [ 33%]

...op timerOnce toParentPoint updateZOrder fromImage Constructors constructor new UIComponent(createChildren?: boolean): UIComponent Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns U...

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

6298. laya.ui.Widget_API3.0 [ 33%]

... onPreRender onReset onStart onUpdate resetLayout Constructors constructor new Widget(): Widget Inherited from Component.constructor Defined in laya/components/Component.ts:44 创建一个新的 Component 实例。 Returns Widget Properties Optional _extra _extra: IComponentExtra Inherited from Comp...

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

6299. laya.html.dom.HTMLDivElement [ 33%]

...宽度 height:100px; 对象高度 示例用法: var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML = " a span span2 p "; Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHiera...

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

6300. 关于UI与3D场景的问题 [ 33%]

...rr=this.getEles(preO.tar,null,TouchManager._oldArr); sendArr=TouchManager._newArr; sendArr.length=0; len=oldArr.length; for (i=0;i < len;i++){ tar=oldArr[i]; if (arrs.indexOf(tar)>=0){ sendArr.push(tar); } } } if (sendArr.length > 0){ this.sendEvents(sendArr,isLeft ? /*laya.events.Event.CLI...

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