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

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

121. 【简单跑酷--JS版】---Lv.3 添加地板 [ 43%]

...lay.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } _proto.onLoop = function(){ } })(); 因为是一个跑酷的游戏 所以 我们之...

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

122. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 43%]

... let sp = BPFont.fontPool.shift() || new Laya.Sprite(); return sp; } /** * 创建位图文本 * @param v */ private createFnt(v: string): void { this.clearFnt(); this.createChars(v); } /** * 创建字符 * @param v */ private createChars(v: string): void { if (!v) { return; } let charNum = v.length;...

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

123. laya.d3.component.Animator [ 43%]

...ublic class AnimatorInheritanceAnimator Component Object Animator 类用于创建动画组件。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By  avatar : Avatar 获取avatar。 Animator  cullingMode : int = 2 裁剪模式Animator destroye...

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

124. laya.components.CommonScript_API3.0 [ 42%]

...onents/CommonScript" CommonScript Class CommonScript CommonScript 类用于创建公共脚本类。 Hierarchy Component CommonScript Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id isSingleton Methods _initializ...

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

125. laya.d3.core.MeshFilter_API3.0 [ 42%]

... "laya/d3/core/MeshFilter" MeshFilter Class MeshFilter MeshFilter 类用于创建网格过滤器。 Hierarchy Component MeshFilter Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id sharedMesh Methods _initialize _...

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

126. laya.physics.joint.JointBase_API3.0 [ 41%]

...mponent.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisabl...

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

127. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 41%]

...个类的职责清晰和单一,就会避免耦合性。 通过LayaAirIDE创建的2D示例项目(打方块游戏)。也是组件化开发设计思想的一个示例,充分考虑了解藕和单一职责。比如,子弹的脚本,只负责自己的移除,回收,完全不需要去考虑...

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

128. laya.display.EffectAnimation [ 40%]

...始播放时,其他动效会自动停止播放。 可以通过LayaAir IDE创建。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中...

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

129. laya.d3.physicscannon.CannonPhysicsComponent_API3.0 [ 40%]

...nonPhysicsComponent Class CannonPhysicsComponent PhysicsComponent 类用于创建物理组件的父类。 Hierarchy Component CannonPhysicsComponent CannonPhysicsTriggerComponent Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked c...

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

130. laya.d3.component.Script3D [ 39%]

...ublic class Script3DInheritanceScript3D Component Object Script3D 类用于创建脚本的父类,该类为抽象类,不允许实例。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 ...

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