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

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

1101. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 86%]

...enDataContext({ state: 'init', openId: GlobalData.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了...

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

1102. 计时器-延迟调用 [ 86%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered"); let text = new Text(); text....

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

1103. This image has just been released and needs to be restored now [ 86%]

This image has just been released and needs to be restored now 在native运行环境下,打开UI界面时加载的图片资源,在界面关闭时对其做clearTextureRes。 短时间内再次打开该界面就会出现这样的提示。请问这个提示是否有性能影响,该如何避免...

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

1104. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 86%]

...lor = "#ffcccc"; var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(...

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

1105. 为什么不能加载多个模型 [ 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

1106. 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

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

...'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () =&gt; { 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

1108. 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

1109. 缓动动画运行一段时间后失效 [ 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

1110. 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