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

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

141. 计时器-延迟执行 [ 75%]

...n(Event.CLICK, this, this.onDecreaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", ...

来源: Laya2.0_示例 发布时间: 20251130

142. laya.ui.Box [ 75%]

...s | Events Packagelaya.uiClasspublic class BoxInheritanceBox UIComponent Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, ScaleBox, Tree, UIGroup, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inherited Public Properties Show Inherited Publi...

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

143. laya.ani.bone.Skeleton [ 75%]

... Events Packagelaya.ani.boneClasspublic class SkeletonInheritanceSkeleton Sprite Node EventDispatcher Object 骨骼动画由Templet,AnimationPlayer,Skeleton三部分组成。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number...

来源: laya_api 发布时间: 20170929

144. 鼠标交互-Hold [ 75%]

...load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width /...

来源: Laya2.0_示例 发布时间: 20251130

145. [LayaAir3]预制体创建问题。求解 [ 75%]

[LayaAir3]预制体创建问题。求解 我的预制体是sprite,为啥提示我要用node类型接收,关键我用node接收下面pos又有报错。提示node类型没有pos属性。 附件 : --> 2024-05-19 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

146. 加载TiledMap 不显示 [ 75%]

加载TiledMap 不显示 import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export...

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

147. 关于设置动画轴心点问题 [ 75%]

...复问题请先登录 发起人 东南西北风 相关问题 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 骨骼动画播放完后的回调时间 LayaAir3D UnityPlu...

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

148. laya.ui.TipManager [ 74%]

...ackagelaya.uiClasspublic class TipManagerInheritanceTipManager UIComponent Sprite Node EventDispatcher Object鼠标提示管理类Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierar...

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

149. laya.ui.VBox [ 74%]

...kagelaya.uiClasspublic class VBoxInheritanceVBox LayoutBox Box UIComponent Sprite Node EventDispatcher Object VBox 是一个垂直布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 N...

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

150. laya.ui.HBox [ 74%]

...kagelaya.uiClasspublic class HBoxInheritanceHBox LayoutBox Box UIComponent Sprite Node EventDispatcher Object HBox 是一个水平布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 N...

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