大约有 503 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0061 秒)
Laya_社区(426) Laya2.0_文档(30) Laya3.0_文档(15) Laya2.0_示例(8) Laya_示例(7) laya_api(7) Laya3.0_api(6) Laya2.0_api(4)
...。以给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
...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
...box/layadcc2.git 分支:dccplugin LayaDCCClient的接口定义: export class LayaDCCClient{ onlyTransUrl:boolean; //映射到dcc目录的地址头,如果没有,则按照http://*/算,所有的请求都裁掉主机地址 pathMapToDCC:string; /** * * @param frw 文件访问接口,不同的...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...理器,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
...个字不改,不会遇到这样问题。 然后再在 Main.ts 里面 class main 的 constructor 函数内末尾 加几句不痛不痒的如下的内容,再导出微信小游戏,就会报上面的错 if (Laya.Browser.onWeiXin) { //微信内 ...
来源: Laya_社区 发布时间: 20190319
...据实际情况修改。有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: ...
来源: Laya_社区 发布时间: 20180302
...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
...73741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = fals...
来源: Laya_社区 发布时间: 20220627
...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