大约有 356 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0254 秒)
...eight); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); ...
来源: Laya2.0_文档 发布时间: 20210715
...注: 2 人 叔年心~厌世 • 2019-10-10 16:43 预加载了,在main函数里面 叔年心~厌世 • 2019-10-10 16:45 for(var i=0;i<this.moneyArr[rr].length;i++){ let sp=new Laya.Animation(); //添加金币 sp.loadAnimation('anis/money.ani'); sp.play(0,true); loadder.addChild(sp); loadder...
来源: Laya_社区 发布时间: 20191010
...位)。 Component clickHandler : Handler 对象的点击事件处理器函数(无默认参数)。 Button comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。...
来源: laya_api 发布时间: 20170929
...eHandler : Handler 当 ProgressBar 实例的 value 属性发生变化时的函数处理器。 默认返回参数value 属性(进度值)。 ProgressBar comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲...
来源: laya_api 发布时间: 20170929
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:134 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231115
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:156 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231102
...nts/Component.ts:270 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 Returns void Optional onStart onStart(): void Inherited from Component.onStart Defined in laya/co...
来源: Laya3.0_api 发布时间: 20231102
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:156 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231102
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:134 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231115
...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void dataSource get dataSource(): any set dataSource(value: any): void Inherited from UIComponent.dataSource Defined in laya/ui/UIComponent.ts:134 implements 数据赋值,通过...
来源: Laya3.0_api 发布时间: 20231115