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

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

6061. Morn UI创建皮肤时的基类能自定义吗?不要View或者Dialog [ 44%]

...定皮肤类。当Button初始化(被加到显示列表)的时候,就会new一个ButtonSkin的实例,并添加ButtonSkin里所有子项到显示列表。 zengjoeng • 2018-02-01 14:31 你给的例子,皮肤还是继承显示对象的。 zengjoeng • 2018-02-01 15:35 能还是不能?

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

6062. Unity插件与LAYAAIR加载的天空盒子BUG与修改方法 [ 44%]

...要回复问题请先登录 发起人 186*****554 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 Layaair IDE的帧属性面板不见了 请问有没有方...

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

6063. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 44%]

...使用的动态加载js的脚本。   function onLoadComplete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后...

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

6064. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 44%]

...h) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/...

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

6065. laya.resource.RenderTexture2D_API3.0 [ 44%]

...restore start destroyUnusedResources popRT pushRT Constructors constructor new RenderTexture2D(width: number, height: number, format?: RenderTargetFormat, depthStencilFormat?: RenderTargetFormat): RenderTexture2D Overrides BaseTexture.constructor Defined in laya/resource/RenderTexture2D.ts:107 Param...

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

6066. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; this.owner.addChild(ta); } } (代码中的...

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

6067. 分享,扩展Laya.Text组件实现简单的富文本 [ 44%]

... private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true);...

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

6068. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 44%]

...D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一...

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

6069. 人物行走图动画 [ 43%]

...nimation), null, Loader.ATLAS); function createAnimation() {   var ani = new Animation();  ani.loadAtlas(AniConfPath); // 加载图集动画  ani.interval = 1000;   // 设置播放间隔(单位:毫秒)  ani.index = 0;     // 当前播放索引  console.log(ani.index);  ani.play()...

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

6070. oppo小游戏修改逻辑发布不生效,且包体包含资源太大 [ 43%]

...辑了图片 执行代码说加载不出来资源 这个是怎么回事? new Laya.Sprite();绘制图形以后,怎么删除释放资源? LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 用Mac下Unity5.6.2f1导...

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