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

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

351. List翻页效果怎么实现 [ 49%]

...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_社区 发布时间: 20181112

352. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 48%]

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

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

353. Maximum call stack size exceeded [ 48%]

...附上代码 : (function () {     'use strict';       class GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;               this.loadScene("m...

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

354. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...rotobuf"; const { regClass } = Laya; @regClass() export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了一个简单的示例DEMO,完整代码如下: // s...

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

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

...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

356. Cannot read property 'rayCast' of undefined [ 48%]

...annot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config...

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

357. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 48%]

...t"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sprite     /**...

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

358. 如何监听移动端软键盘的弹出和收回? [ 48%]

...flash.text.TextFieldType; import flash.ui.Keyboard; public class TextInput extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWidth = Laya.windo...

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

359. [LayaAirIDE3]发布后的bundle.js,类的定义顺序错误 [ 48%]

...互引用,改为: public instance:any   }   export default class B extends A{   } 2024-12-16 1 0 分享 微博 QZONE 微信 正阳子 赞同来自: laya这种类顺序问题是类相互循环引用导致,比如A,B相互继承,然后又相互引用,100%导致引擎出现这种问题...

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

360. 2.0版本可用的CameraMoveScript.ts [ 47%]

...一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     protected yawPitchRoll: La...

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