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

大约有 175 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0049 秒)

121. 发布Oppo小游戏屏幕适配bug [ 54%]

...希望有用。 Laya.stage.on(Laya.Event.RESIZE, this, this.resize);     static resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.Stage.SCALE_FIXED_WIDTH) ...

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

122. Mac环境FlashBuilder编译后运行报错 [ 54%]

...接 提交 1 个回复 Laya_Aaron 赞同来自: Utils.3D.as 类,把、/* static safe */那个都删了 2018-06-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 CrossCrush 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文...

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

123. LayaAir中字符串转xml [ 54%]

...15 18:33 浏览: 1254 关注: 2 人 yurong3000 • 2017-02-21 10:55 public static function stringToXMLDom(value:String):XmlDom { var xml:XmlDom; /*[IF-SCRIPT-BEGIN] if(document.all) {   xml=new ActiveXObject("Microsoft.XMLDOM");   xml.loadXML(value); } else { xml = new DOMParser()....

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

124. 使用layacmd资源版本管理时,与res相同目录的未打包的大图片改怎么处理呢 [ 54%]

... * @param originURL 源路径 * @return 格式化后的新路径 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest["resource/"+originURL]) return manifest["resource/"+originURL] + "/resource/" + originURL; return orig...

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

125. 请问Laya如何使用第三方物理库 [ 54%]

...N.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable...

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

126. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 54%]

...下午3:07 * @Desc: 字体样式管理器 **/ class StyleManager { private static _instance: StyleManager; private _styleMap: Object;//字体样式映射 static get instance(): StyleManager { if (!this._instance) { this._instance = new StyleManager(); } return this._instance; } constructor() { } /**...

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

127. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 54%]

...### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — 位图字体的名称。 bitmapFont:BitmapFont — 位图字体文件。 **unregisterBitmapFont () 方...

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

128. LAYABOX游戏实时语音之APP版本 [ 54%]

...lic class YIMMain { private final String TAG = "MarketTest"; private final static String strAppKey = "123132123";//你申请的App Key private final static String strSecrect = "1231312312312312312312";//你申请的App Secret private static String mUserId = ""; private final static String mPassword ...

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

129. scaleMode bug [ 53%]

...人 smallsow • 2018-03-16 14:53 SCALE_FIXED_WIDTH : String = fixedwidth [static] 应用保持设计宽度不变,高度根据屏幕比缩放,stage的宽度等于设计高度,高度根据屏幕比率大小而变化 1、设计宽高: ​ 在项目代码中项目代码中初始化舞台Laya.in...

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

130. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 53%]

... private mConnected: boolean;         /** 开启*/         public static OPEN: string = "open";         /** 关闭*/         public static CLOSE: string = "close";         /** io错误*/         public static IO_ERROR: string = "io-error";         /** 数据*/        ...

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