大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0077 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...交 3 个回复 northTg 赞同来自: static init(par: fgui.GComponent) { this.parent = par; this.aniPath = "res/sk/pipei.skel"; this.index = -1; this.startFun(); } static startFun() { if (!this.templet) this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath)...
来源: Laya_社区 发布时间: 20211207
关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....
来源: Laya_社区 发布时间: 20180719
...class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya....
来源: Laya2.0_示例 发布时间: 20250224
3D空间转2D空间的问题 3D空间转2D空间我用的是 this.camera.viewport.project(this.playerArray[i].transform.position, this.camera.projectionViewMatrix, this.imgPos2); 转换的坐标到this.imgPos2里面。 像这样的一个场景。加载图片到3D物体上跟着3D物体跑动这样...
来源: Laya_社区 发布时间: 20190212
...2349 这是官方提供的代码 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,r...
来源: Laya_社区 发布时间: 20180504
...ng", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...
来源: Laya2.0_示例 发布时间: 20250224
...ha = true; Laya.stage.bgColor ="none"; this.Show(); } private iframe: any = Laya.Browser.document.createElement("iframe"); private _view: HTMLDivElement = document.createElement("div"); public Show(): void { ...
来源: Laya_社区 发布时间: 20240304
Animator无法监听complete 首先,我新增了多个clip到Animator: this.ani = this.actor.getComponentByType(Laya.Animator) as Laya.Animator; this.ani.addClip(clipSuccess, this.ANIM_SUCCESS_IDLE_NICK,0,34); this.ani.addClip(clipFailed, this.ANIM_FAILED_IDLE_NICK,0,34); this.ani.addClip(clipCardI...
来源: Laya_社区 发布时间: 20180309
... { // 第一次创建一个动画 if (null == this.mAnimaCur) { this.mAnimaCur = new laya.display.Animation(); this.mAnimaCur.interval = 100; this.addChild(this.mAnimaCur); } var lo...
来源: Laya_社区 发布时间: 20161205
...还要加什么东西,能不能有个demo啊,找了半天没有找到 this.popupEffect = new Handler(this, () => { this.scale(0.2, 0.2); Laya.Tween.to(this, { scaleX: 1, scaleY: 1 }, 2000); }); 2018-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180620