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

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

931. 内存释放问题 [ 52%]

LayaAir引擎 内存释放问题 export class ResUIModuleManager { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @mem...

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

932. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 52%]

...件 代码运行结果: const { regClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: any[]; private...

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

933. 1.7版本要初始化后有些代码才能用了 [ 52%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 预设怎么在代码中使用 动画混合无效(版本2.6) 求助关于TiledMap的版本问题 求...

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

934. laya.physics.CircleCollider_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/CircleCollider" CircleCollider Class CircleCollider 2D圆形碰撞体 Hierarchy ColliderBase CircleCollider Index Constructors constructor Properties _extra _singleton fixture label owner r...

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

935. laya.particle.ParticleSetting_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/particle/ParticleSetting" ParticleSetting Class ParticleSetting ParticleSettings 类是粒子配置数据类 Hierarchy ParticleSetting Index Properties ageAddScale blendState boxEmitterCenterPositi...

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

936. 滤镜-颜色滤镜 [ 52%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Color { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, ...

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

937. sound manager在MOUSE_OVER事件中无法播放 [ 52%]

...Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound_SimpleDemo {         //声明一个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas   ...

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

938. laya.ani.AnimationPlayer_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ani/AnimationPlayer" AnimationPlayer Class AnimationPlayer AnimationPlayer 类用于动画播放器。 Hierarchy EventDispatcher AnimationPlayer Index Constructors constructor Properties isCache pl...

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

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

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

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

940. laya.physics.EdgeCollider_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/EdgeCollider" EdgeCollider Class EdgeCollider 2D边框碰撞体 Hierarchy ColliderBase EdgeCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody...

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