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

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

41. 主类引用了laya.utils.Mouse这个类,报错:所访问的属性 Mouse 可能未定义 [ 70%]

...package flash.ui { public class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!

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

42. AS语言 怎么调用MD5加密? [ 69%]

...MD5加密? AS语言怎么调用MD5加密?还有正则判断? private static function RegExpFunc(reg:RegExp,str:String):Boolean { var p:RegExp=reg; return p.test(str) ; } 2017-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

43. [LayaAir3]支付宝小游戏使用TTF字体异常 [ 69%]

...2024-05-15 0 2 分享 微博 QZONE 微信 devx 赞同来自:     private static applyFont(nativePath: string) {         alert("应用字体=>" + nativePath);         let fontName = my["loadFont"](nativePath) as string;         if (fontName) {             Laya.Config.defaultFon...

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

44. 静态合并(ActionScript-3D基础(AS3)-LayaAir3D之性能优化) [ 68%]

...使用静态合并 在Unity中对需要使用静态合并的模型勾选 Static 静态选项导出即可。 ![](img/1.png)(图1) 在导出后,正常使用导出后的场景(或预设)就能使用静态合并功能。 我们先来看一个简单的场景: ![](img/2.png)(图2) 场景内容 然...

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

45. UI-List [ 68%]

...Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.i...

来源: Laya2.0_示例 发布时间: 20250312

46. UI-List [ 68%]

...Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.i...

来源: Laya_示例 发布时间: 20250312

47. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 68%]

...ate方法,在iPhone6上性能降低了80% import s3d = Laya.Sprite3D;   static s3ds:{[key:string]:s3d;} = {};   static news3d(id):s3d{ return x.s3ds[id].clone() as s3d;//s3d.instantiate(x.s3ds[id]); }   static loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, fun...

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

48. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 68%]

... export module ui { export class GameSceneuiUI extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/b...

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

49. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 68%]

...port class GameSceneuiUI extends Laya.Scene {         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["co...

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

50. this.bitmap.activeResource is not a function [ 68%]

this.bitmap.activeResource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = n...

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