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

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

311. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 56%]

...Air3]V3.2 | 调试结果不一致,导致无法判断结果? const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window.camer...

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

312. 加载TiledMap 不显示 [ 56%]

... import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自动切换...

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

313. 加了两个遮罩后的动画,帧频只有10了,有demo,有项目,有源码 [ 56%]

...dfirecode/Laya_Mask_Demo 源码 https://github.com/wildfirecod ... le.ts  class GameMain{ constructor() { Laya.init(1920,950,Laya.WebGL); Laya.Stat.show(); const container = new Laya.Sprite(); Laya.stage.addChild(container); const mask = new Laya.Sprite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0...

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

314. Image加载完成后的图片大小重设问题 [ 56%]

...效,一直显示都是原来设定的大小。示例代码如下:   class PlayGame extends ui.PlayGameUI {     constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height...

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

315. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 56%]

...er.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt...

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

316. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 56%]

...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...

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

317. 对话框点击空白处真的无法关闭 [ 56%]

...Dialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show(); 附件 : --> testCloseDialog.rar 2018-03-26 添加评论 免...

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

318. downloadFile:fail url scheme is invalid [ 56%]

...致Templet删不掉 关于页面访问 url 带参 疑问 ? laya 2.0 用class创建scene, 实例 的 url属性为null, layaAir 运行了url地址会停止当前运行 发布小游戏时提示:[xmldom error] element parse error: Error: invalid tagName: 问题状态 最新活动: 2019-02-14 17:02 浏...

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

319. Image.loadImage 方法加载问题 [ 56%]

...publicSpaceData = cell.dataSource; } module gamepublicspaceitem {  export class PublicSpaceItem extends Laya.Box  {   public static BTN_ENTRER_CLICK:string = "BtnEnterClick";   public _publicSpaceData:datasheet.PublicSpaceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   c...

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

320. Handler.create的回收问题 [ 56%]

...aya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

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