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

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

111. 怎样复制bmf字体 [ 62%]

...bel使用的并不是 ide中自己做的bmf字体。    class cloneLabel extends Laya.Label { constructor(_label) { super(); this.align = _label.align; this.x = _label.x; this.y = _label.y; this.width = _label.width; this.height = _label.height; this.fontSize = _label.fontSize; this.color = _label...

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

112. 位图切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width...

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

113. Warning!,this class[MiniAdpter] already exist: Object {} [ 62%]

...Utils.getClass获取不到Class Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent 问题状态 最新活动: 2018-10-07 18:09 浏览: 996 关注: 2 人

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

114. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HScrollBar }) public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hscroll.sk...

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

115. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vscroll.sk...

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

116. 动态添加addComponent(Laya.RigidBody)的问题 [ 62%]

...lf()后会抛错 : laya.core.js:13190 Uncaught 无法实例class RigidBody extends Laya.Component {... 2.但如果将Laya.RigidBody组件直接挂在预制体上,用this.owner.getComponent(Laya.RigidBody)设置后,在调用  this.owner.removeSelf()则不会抛错。   附件 : --> 2020-01-19 ...

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

117. Laya.class是什么意思 [ 62%]

... 赞同来自: Laya.class是js下的继承类的用法,相当于as3下的extends的用法 2016-07-14 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Pacino 相关问题 在js代码中,let 是什么意思 看官方2.0的shader例子,...

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

118. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property( { type : Laya.FontClip } ) public fontclp: Laya.FontClip; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwak...

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

119. fillTexture使用问题 [ 61%]

...以正常使用的,但是用fillTexture时无任何效果。 class Map extends laya.display.Sprite { static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: L...

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

120. 实体组件系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...逻辑及对象池回收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: ...

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