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

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

161. laya.display.Stage [ 51%]

...s | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不...

来源: Laya2.0_api 发布时间: 20190513

162. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 50%]

...保一个对象能够被回收,需要删除对该对象的所有引用。Sprite提供的`destory()`方法会帮助设置内部引用为null。 例如,以下代码确保对象能够被作为垃圾回收: 1. `//创建一个Sprite实例` 2. `var sp = new Laya.Sprite();` 3. `//将sp内部引用设...

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

163. 【简单跑酷--JS版】---Lv.6 终篇 [ 50%]

... Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.l...

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

164. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...是 UI 系统特有的功能属性。这些能力在 2D 基础对象(如 Sprite)中并不具备。 3.1 相对布局layout 如图 3-1 所示,每个 UI 组件都具备一组用于相对定位的布局属性。而基础显示对象(如 Sprite)仅支持绝对布局。 (图3-1) 在相对布...

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

165. laya.display.Text_API3.0 [ 49%]

...aya.stage.addChild(text);//将 text 添加到显示列表。 } } Hierarchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROL...

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

166. laya.d3.core.Camera [ 49%]

...s Packagelaya.d3.coreClasspublic class CameraInheritanceCamera BaseCamera Sprite3D ComponentNode Node EventDispatcher Object Camera 类用于创建摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是...

来源: laya_api 发布时间: 20170929

167. laya.d3.core.VRCamera [ 48%]

...ackagelaya.d3.coreClasspublic class VRCameraInheritanceVRCamera BaseCamera Sprite3D ComponentNode Node EventDispatcher Object Camera 类用于创建VR摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是...

来源: laya_api 发布时间: 20170929

168. 关于使用Idea以及Linux下使用AS语言开发的一点经验 [ 48%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mas...

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

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

...时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (t...

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

170. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3D、Laya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之后,直接传...

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