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

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

1101. 为什么不能加载多个模型 [ 86%]

...Scene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(this,this.onCreateComplete)); private onCreateComplete():void { var mesh:Laya.Mesh = Laya.loa...

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

1102. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 86%]

...n{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); }...

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

1103. 无法触发浏览器文件上传框 [ 86%]

...'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = ne...

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

1104. laya.filters.ColorFilter_API3.0 [ 86%]

... Parameters brightness: number 亮度,范围:-100~100 Returns ColorFilter this adjustColor adjustColor(brightness: number, contrast: number, saturation: number, hue: number): ColorFilter Defined in laya/filters/ColorFilter.ts:102 调整颜色,包括亮度,对比度,饱和度和色调 Parameter...

来源: Laya3.0_api 发布时间: 20231115

1105. 缓动动画运行一段时间后失效 [ 86%]

缓动动画运行一段时间后失效   Laya.timer.loop(2000, thisthis.doTween); doTween() { Laya.Tween.from(             this.skeleton,             { scaleX: 1.3, scaleY: 0.8 },             200,             Laya.Ease.bounceOut,     ...

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

1106. HTMLDivElement中,有<style>标签,第二帧再刷会报错的问题 [ 86%]

...HTMLDivElement中,有&lt;style&gt;标签,第二帧再刷会报错的问题 this.m_htmlInfo = new HTMLDivElement(); this.m_htmlInfo.innerHTML = htmlText; this.frameOnce(1, this, function(){ this.m_htmlInfo.innerHTML = htmlText; }) 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

1107. 请问一下怎样动态加载prefab [ 86%]

...  1.    let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("dropBox", this.dropBox.create, this.dropBox); 这个会在create的时候报错 2. prefab:Prefab = Laya.Load.getRes("prefab/xxx"); 这个获取prefab直接就是个空   请问一下 这个到底是怎么写才能动态加载一个pref...

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

1108. 苹果上架有问题啊 , !!!!!! [ 86%]

....5.2 and section 3.3.2 of the Apple Developer Program License Agreement. This code, combined with a remote resource, can facilitate significant changes to your app’s behavior compared to when it was initially reviewed for the App Store. While you may not be using this functionality currently, it...

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

1109. 关于tiledmap获取格子自定义属性 [ 86%]

...laya.tiledmap.js 1. addTileProperties方法前后加入         2. this.addTileProperties(tTileSet.tileproperties); 后加入 3.使用时   附件 : --> 2017-09-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

1110. 一个技术文档的问题 [ 86%]

...取到添加附加脚本的组件实例 **/ public set owner(value: any) { this.monkeyBox = value; //自定义的脚本会有时序问题,所以在此添加一个延时 this.monkeyBox.frameOnce(2, this, this.onLoaded); } 我想问的是this.monkeyBox = value;这句话,monkeyBox的类型是Sprite...

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