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

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

1. 2.0 Beta3版本,runtime脚本的的问题 [ 100%]

...geRunTime" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; stat...

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

2. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 95%]

...持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights ...

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

3. this.bitmap.activeResource is not a function [ 93%]

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

4. 如何能监听到TouchStart和TouchEnd事件 [ 89%]

...空的 Event 对象。用于事件派发使用。*/         static EMPTY: Event;         /** 定义 mousedown 事件对象的 type 属性值。*/         static MOUSE_DOWN: string;         /** 定义 mouseup 事件对象的 type 属性值。*/         static ...

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

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

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

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

6. 分享个用美术资源做位图文本的方法。。。 [ 87%]

...ya.Sprite; // 位置类型 private _posType: string; // 左 右 public static LEFT: string = "left"; public static RIGHT: string = "right"; public static CENTER: string = "center"; constructor(jsonData: any,textureData: Laya.Texture,width: number,posType:string = "left"){ super(); this.width = w...

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

7. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 86%]

...e startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarStyle: "hidden", properties: [ { name: "help", caption: "提示", inspector: "Info", type: "string", default: "输入文件夹必须是图...

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

8. 引擎的修改意见 [ 86%]

...tURL方法使用customFormat传入参数有问题, 多了个base public static function formatURL(url:String, base:String = null):String { if (!url) return "null path"; //如果是全路径,直接返回,提高性能 if (url.indexOf(":") > 0) return url; //自定义路径格式化 if (custo...

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

9. 微信小游戏,子域问题。 [ 85%]

微信小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博...

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

10. linearVelocity 获取的线速度不正确 [ 85%]

...国 已经确定了是引擎bug 只要修改下就好希望官方处理下 static _convertToLayaVec3(bVector, out, inverseX) { var bullet = Physics3D._bullet; out.x = inverseX ? -bullet.btVector3_x(bVector) : bullet.btVector3_x(bVector); out.y = bullet.btVector3_y(bVector); out.z = bullet.btVector3_...

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