大约有 5,082 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0132 秒)
代码重用和公共函数的疑问,在TS里怎么使用? 比如我每个页面上 都有相同的按钮需要监听,都需要使用相同的函数,那么目前我只能在每个页面上都写相同的代码。这样就失去面向对象的意义,有什么思路可以解决代码重用...
来源: Laya_社区 发布时间: 20170924
加载学堂3D角色资源,播放动画异常 //创建男角色模型 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm")); this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01); this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.sce...
来源: Laya_社区 发布时间: 20180725
多行输入文本组件(TextArea)1. LayaAir IDE中使用TextArea1.1 创建TextArea1.2 TextArea属性介绍1.3 脚本控制TextArea2. 通过代码创建TextArea多行输入文本组件(TextArea) 由于TextArea继承于TextInput,两者相同点太多这篇文章只介绍两者不同的地方,Tex...
来源: Laya3.0_文档 发布时间: 20251010
场景的管理一、IDE中的场景1.1 新建场景1.2 场景划分1.3 autoDestroyAtClosed属性1.4 mouseThrough属性二、代码中使用2.1 场景类2.2 打开场景2.3 关闭场景2.4 场景的加载页面2.5 销毁和垃圾回收场景的管理 LayaAir3.0继续延用2.0开发思路为组件...
来源: Laya3.0_文档 发布时间: 20251010
[LayaAir3]LocalStorage.get报错 Uncaught TypeError: Cannot read properties of undefined (reading 'getItem') 2025-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 LayaAir小牛 赞同来自: 可以发一个de...
来源: Laya_社区 发布时间: 20251013
...如需更改,请在初始化引擎之前设置。 Hierarchy Config Index Properties FPS animationInterval defaultFont defaultFontSize destroyResourceImmediatelyDefault fixedFrames isAlpha isAntialias isDepth isStencil isfailIfMajorPerformanceCaveat powerPreference premultipliedAlpha preserveDrawin...
来源: Laya3.0_api 发布时间: 20231115
...ges | All Classes | Index | Frames No Frames ShurikenParticleRendererProperties | Methods Packagelaya.d3.core.particleShuriKenClasspublic class ShurikenParticleRendererInheritanceShurikenParticleRenderer BaseRender EventDispatcher Object ShurikenParticleRender 类用于创建3D粒子渲染...
来源: Laya2.0_api 发布时间: 20190513
...erarchy Component EffectBase FadeIn FadeOut Index Constructors constructor Properties _extra _singleton autoDestroyAtComplete delay duration ease eventName owner repeat runInEditor scriptPath target Accessors awaked destroyed enabled hideFlags id Methods _initialize _setOwner destroy hasHideFlag onA...
来源: Laya3.0_api 发布时间: 20231115
...tionAll Packages | All Classes | Index | Frames No Frames EmitterBaseProperties | Methods Packagelaya.particle.emitterClasspublic class EmitterBaseInheritanceEmitterBase Object EmitterBase 类是粒子发射器类 Public Properties PropertyDefined By emissionRate : Number 获取粒子发...
来源: laya_api 发布时间: 20170929
...CannonSphereColliderShape Implements IClone Index Constructors constructor Properties needsCustomCollisionCallback SHAPEORIENTATION_UPX SHAPEORIENTATION_UPY SHAPEORIENTATION_UPZ Accessors localOffset localRotation radius type Methods _setScale clone cloneTo destroy updateLocalTransformations Constru...
来源: Laya3.0_api 发布时间: 20231102