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

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

471. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...。以给Image组件添加皮肤为例,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片...

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

472. 分享:List相关(Item增删功能) [ 45%]

...laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板 private var arr:Array;//list数据数组 public function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需...

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

473. 缓存工具-layadcc · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...box/layadcc2.git 分支:dccplugin LayaDCCClient的接口定义: export class LayaDCCClient{ onlyTransUrl:boolean; //映射到dcc目录的地址头,如果没有,则按照http://*/算,所有的请求都裁掉主机地址 pathMapToDCC:string; /** * * @param frw 文件访问接口,不同的...

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

474. [临时解决]bug?加载sk问题 [ 44%]

...  this.preload(this.onPreloaded.bind(this));      }      Laya.class(Test01, 'view.Test01', _super);      var _proto = Test01.prototype;      _proto.preload = function (complete) {         console.log("preload..." + (++this.numPreloadCalls));          if (this.d...

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

475. Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 [ 44%]

...理器,Laya.loader:加载管理器,使用时注意大小写。 */ //class Laya var ___Laya=(function(){ //function Laya(){} Laya.__init=function(_classs){} Laya.init=function(width,height,__plugins){} Laya.alertGlobalError=function(value){} Laya.enableDebugPanel=function(debugJsPath){} Laya.st...

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

476. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 43%]

...个字不改,不会遇到这样问题。 然后再在 Main.ts 里面  class main 的 constructor 函数内末尾 加几句不痛不痒的如下的内容,再导出微信小游戏,就会报上面的错           if (Laya.Browser.onWeiXin) {             //微信内     ...

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

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

...据实际情况修改。有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: ...

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

478. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 43%]

...tomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTexture(CustomMaterial.DIFFUSETEXTURE); } CustomMateria...

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

479. 引擎 TiledMap 居然不支持图块翻转 [ 43%]

...73741824;     const TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = fals...

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

480. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 43%]

...Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; public static function get Instance():Socketmanger { if(_I==null)_I=new Socketmanger(); return _I; } private static var socket:Socket=null; private var list:Array=; publ...

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