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

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

141. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 57%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

142. 自定义组件用的layaeditor.d.zip报错 [ 57%]

...上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类laya.ui.Component ...

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

143. Windows扩展 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...stLib"; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { alert(testLib.nativeAdd(10, 11)); } } 因为LayaNative的扩展功能只支持Windows平台,所以只能通过Windows预览或发布为Windows项目才能得到正确的结果。运行效...

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

144. 一个简单的跑酷曲面shader分享 [ 56%]

...写,就写这个shader练练手~   export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffset"); public readonly Y_OFFSET: numbe...

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

145. 其他引擎的Demo-Example_23 [ 56%]

...rement the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

来源: Laya_示例 发布时间: 20250219

146. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

....on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯2D,或2D/3D混合这两种情况中均可正常使用。 3.2 2...

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

147. 微信小游戏加载资源问题 [ 56%]

...niFileMgr.DESCENDING = 2; MiniFileMgr.NUMERIC = 16; class MiniSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindTo...

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

148. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 56%]

...BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自...

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

149. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 55%]

...个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor"...

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

150. 请问laya有没有类似翻页容器(pageView)的组件? [ 55%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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