大约有 2,945 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1043) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(76)
...s "laya/d3/RenderObjs/NativeOBJ/NativeVertexBuffer3D" NativeVertexBuffer3D Class NativeVertexBuffer3D Hierarchy VertexBuffer3D NativeVertexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _conchVertexBuffer3D _glBuffer Accessors bufferUsage canRead inst...
来源: Laya3.0_api 发布时间: 20231115
...aya { import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_Sequence { private numLoaded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 La...
来源: Laya_示例 发布时间: 20241002
...会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在下面加上一行代码: class MapLayer extends Sprite { _mapData: Array<any>; /** * @private */ _gridSpriteArray: Array<any>; _showGridList: Array<any>; //这...
来源: Laya_社区 发布时间: 20170918
API DocumentationAll Packages | All Classes | Index | Frames No Frames BoundBoxProperties | Methods Packagelaya.d3.mathClasspublic class BoundBoxInheritanceBoundBox ObjectImplements laya.d3.core.IClone BoundBox 类用于创建包围盒。 Public Properties PropertyDefined By max : Vecto...
来源: Laya2.0_api 发布时间: 20190513
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Image)。 **Image 组件的资源示例:** ![图片0.png](img/1.png) (图1) **Image 组件拖放到编辑区后显示效果:** ![图片0.png](img/2.png) (图2) ### 1.2 Image ...
来源: Laya2.0_文档 发布时间: 20210714
2.0按钮添加事件报错 cannot read property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } } //调用on的时候 直接...
来源: Laya_社区 发布时间: 20181207
...0beta2 IDE自动生成的/src/ui/layaMaxUI.js 中代码如下: /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ var CLASS$=Laya.class; var STATICATTR$=Laya.static; var View=laya.ui.View; var Dialog=laya.ui.Dialog; if(!window.ui) window.ui={}; ........
来源: Laya_社区 发布时间: 20190813
...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...
来源: Laya_社区 发布时间: 20180125
...ount = function(){ //----- } } Laya.class(FactionListItem,"FactionListItem",FactionMainNodeUI); return FactionListItem; })(); 在一个类里。。我可以用this.这样直接调用方法吗?我现在调用了会报错? 2017-11-27 添加评...
来源: Laya_社区 发布时间: 20171127
...示这个img。我们新建个项目。代码如下所示: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Spri...
来源: Laya2.0_文档 发布时间: 20210715