大约有 496 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
...285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage...
来源: Laya_社区 发布时间: 20211026
...因 let sk = new Laya.Skeleton(); Laya.stage.addChild(sk); sk.load(this.aniUrl); 附件 : --> 2019-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 没有勾选库 编辑模...
来源: Laya_社区 发布时间: 20190409
...true, false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; scene.addChild(clonesprite) as Laya.Sprite3D; clonesprite.transform.localScale = new Laya.Vector3( 0.01125, 0.01...
来源: Laya_社区 发布时间: 20220721
...}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={"type":"View","props":{"width":720,"height":1280},"compId":2,"child":[{"...
来源: Laya_社区 发布时间: 20200228
...实验了一下可以,供参考 我在 Scene2D 的 RuntimeScript 中用 this.scene3D 去访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点. export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D")...
来源: Laya_社区 发布时间: 20251020
...ublic function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p....
来源: Laya_社区 发布时间: 20171113
...{ super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={"type":...
来源: Laya_社区 发布时间: 20200228
...通过下面的代码,可以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new...
来源: Laya3.0_文档 发布时间: 20230303
...删除Texture的显存,因为Texture中的destroy函数的判断条件(this.bitmap).referenceCount>0这个判断一直不成立,referenceCount一直为0,是我用错了还是引擎bug? 2018-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20180418
...不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 jweila...
来源: Laya_社区 发布时间: 20170412