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

大约有 805 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0071 秒)

201. 加载3d资源提示内存不足的问题 [ 75%]

...释放掉当前资源,加载下一个3d资源,在加载完成的回调函数里,添加此资源到舞台上就会报错   我也在入口函数里添加了这句,但没卵用 window['Config3D'] && (window['Config3D']['_defaultConfig']['_defaultPhysicsMemory']=100);   求大佬指...

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

202. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 75%]

...- `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace` 声明全局对象(含有子属性) - `interface 和 type` 声明全局类型 通过以上语法,我们可以看出,...

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

203. 分离模式下使用自定义场景类 [ 75%]

...ditor\h5\layabuilder.max.js,搜索“__proto.parseTsImport”,修改该函数体内容:__proto.parseTsImport=function(str){ var tStr = str.replace("import",""); str = 'from'; str = tStr.indexOf(str) > -1 ? str : '='; tStr = StringTool$1.trimSide(tStr.split(str)[0]); this.importDic[tStr] = t...

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

204. animator.owner._scene报空 [ 75%]

animator.owner._scene报空 在laya.d3.js文件中,animator.update函数中,animator.owner._scene报空,导致(animator.owner._scene).timer报错,请问这是什么原因呢?项目有点大暂时提供不了demo。 2020-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

205. laya.ui.VBox_API3.0 [ 75%]

...启自定义渲染,只有开启自定义渲染,才能使用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

206. 怎样复制bmf字体 [ 75%]

...辑器中使用了bmf字体,然后把ide中的这个控件传到下列的函数中,发现新创建的label使用的并不是 ide中自己做的bmf字体。    class cloneLabel extends Laya.Label { constructor(_label) { super(); this.align = _label.align; this.x = _label.x; this.y = _label.y; t...

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

207. laya.ui.HBox_API3.0 [ 75%]

...启自定义渲染,只有开启自定义渲染,才能使用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

208. laya.map.GridSprite_API3.0 [ 75%]

...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void destroyed get destroyed(): boolean Inherited from Node.destroyed Defined in laya/display/Node.ts:92 是否已经销毁。对象销毁后不能再使用。 Returns boolean dis...

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

209. laya.physics.PhysicsDebugDraw_API3.0 [ 75%]

...启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Parameters b: boolean Returns void destroyed get destroyed(): boolean Inherited from Node.destroyed Defined in laya/display/Node.ts:92 是否已经销毁。对象销毁后不能再使用。 Returns boolean dis...

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

210. laya.ui.ColorPicker_API3.0 [ 75%]

...is, onChangeColor,[colorPicket]);//设置 colorPicket 的颜色改变回调函数。 Laya.stage.addChild(colorPicket);//将此 colorPicket 对象添加到显示列表。 } private function onChangeColor(colorPicket:ColorPicker):void { trace("当前选择的颜色: " + colorPicket.selectedColor); }...

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