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

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

1241. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...combobox.png";//资源来自“引擎API使用示例” pageWidth: number; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboBox = new...

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

1242. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 40%]

...Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);         // Laya.stage.scaleMode = Stage.SCALE_NOSCALE;     ...

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

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

...宽度 * @param align 水平排列方式 * @param padding 间距 */ public constructor(resFix: string, width: number, align: string = "left",padding: number=0) { super(); this.width = width; this.resFix = resFix; this._align = align; this._padding = padding; } /** * 字间距 */ public set padding(v...

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

1244. localRotationEulerY旋转位置错误 [ 40%]

...  private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();         this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          //初始化照相机         va...

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

1245. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 39%]

...行: //问题在 addSphere 方法 class PhysicsWorldBaseCollider{     constructor(){         //初始化引擎         Laya3D.init(0, 0);         //设置画布模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;...

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

1246. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...resources/res/ui/checkbox (5).png", "resources/res/ui/checkbox (6).png" ]; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skins).then(() => { this.onCheckBoxSkinLoaded(...

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

1247. laya.ui.DialogManager_API3.0 [ 39%]

...r属性,可以更改弹出的层次 Hierarchy Sprite DialogManager Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize closeEffectHandler hitTestPrior lockLayer maskLayer mouseThrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWi...

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

1248. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 39%]

... //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapF...

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

1249. laya.ani.swf.MovieClip_API3.0 [ 39%]

...放经过工具处理后的 swf 动画。 Hierarchy Sprite MovieClip Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize basePath hitTestPrior interval loop mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...

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

1250. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 39%]

...以扩展一下 第一步 修改此类: class HTMLHitRect {         constructor() {             this.rec = new Laya.Rectangle();             this.isMouseOver = false;             this.reset();         }         reset() {             this.rec.reset();        ...

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