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

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

71. laya.d3.core.BaseCamera_API3.0 [ 72%]

...于创建摄像机的父类。 Hierarchy Sprite3D BaseCamera Camera Index Constructors constructor Properties _extra _forward _scene _up _url name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT Accessors active activeInHierarchy clearColor comp...

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

72. as3的类里定义的字段编译后会被注释 [ 72%]

...ic function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译后的代码才不会注释掉a和b这两个字段,我想问一下,能不能不...

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

73. ProgressBar 代码问题 [ 70%]

...er = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (this.loadingBar.value >= 1){   ...

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

74. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 68%]

...写个简单的例子来看下用法: ```typescript class LayaSample { constructor() { //初始化引擎 Laya.init(1136, 640); var xhr: Laya.HttpRequest = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(La...

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

75. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...combobox.png";//资源来自“引擎API使用示例” pageWidth: number; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new...

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

76. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...resources/res/ui/checkbox (5).png", "resources/res/ui/checkbox (6).png" ]; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(...

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

77. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

... */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //...

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

78. laya.map.TileAniSprite_API3.0 [ 65%]

...象(TileAniSprite)) author ... Hierarchy Sprite TileAniSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blend...

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

79. laya.html.dom.HTMLIframeElement_API3.0 [ 65%]

...加载外并解析数据 Hierarchy HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight context...

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

80. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 64%]

... class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loa...

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