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

大约有 421 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

51. laya.utils.Utils_API3.0 [ 87%]

...:40 Parameters value: string Returns number Static getBaseName getBaseName(path: string): string Defined in laya/utils/Utils.ts:129 获得路径中的文件名(包含扩展名) Parameters path: string Returns string Static getFileExtension getFileExtension(path: string): string Defined in laya/u...

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

52. load完成后能否获取到具体是哪个对象资源完成 [ 86%]

...s.LoadAsset("res/LayaScene_H5TestScene/H5TestScene.ls"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回...

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

53. 关于Button Skin 切图问题 [ 86%]

...if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxWith, im.width) maxHeight = max( maxHeight, im.height) print im.width, im.height lengt...

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

54. 自己画的view不支持鼠标点击吗? [ 86%]

自己画的view不支持鼠标点击吗? var path:Array=[["moveTo", 68, 1080], //画笔移到A点 ["lineTo", 500, 1080], //画到B点 ["lineTo", 650, 700], //再画到C点 ["lineTo", 340, 700], //继续画到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, pat...

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

55. 加载模式不能用 有demo [ 86%]

...他别在屁股后面加 .scene就可以了   __proto.loadScene=function(path){         var url=path.indexOf(".")>-1 ? path :path+".scene";         var view=Laya.loader.getRes(url); 附件 : --> Test2.1_.0_.rar 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

56. "加载模型时出现LoaderManager:unknown file(E:/layaprj/layascene/bin/null path) extension with: null." [ 85%]

...载模型时出现LoaderManager:unknown file(E:/layaprj/layascene/bin/null path) extension with: null." unity 5.6 ide:1.7.10 tool:1.6.0 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 Monica - 知识达...

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

57. Panel 的 滑动问题 [ 84%]

...= false; this.addChild(panelParent );   _putChild: function (parentName, path, col, row, cellSize, offset, scale)  { var root = this.getChildByName(parentName);        var cell = uiUtils.createSprite(path);       root.addChild(cell);        var offsetX = 0; var offsetY = 0;      if ...

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

58. laya.d3.component.AvatarMask_API3.0 [ 84%]

...tarMask Index Constructors constructor Methods clone cloneTo getAllTranfromPath getTransformActive setTransformActive Constructors constructor new AvatarMask(): AvatarMask Defined in laya/d3/component/AvatarMask.ts:9 创建一个AvatarMask实例 Returns AvatarMask Methods clone clone(): any Defined ...

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

59. EffectMaterial在真机上texture为空 [ 84%]

...y]; for (i=0,n=textures.length;i < n;i++){ var texture=textures[i]; var path=texture.path; (path)&& (material[texture.name]=Loader.getRes(path)); } 会出现无法将texture赋值到材质上。网页端没有问题 版本全部都是最新 2018-12-07 添加评论 免费帖 --> 分享 微...

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

60. 如何清除graphics绘制的矢量图 [ 84%]

...= 0) {                     sp.graphics.drawLines(0, 0, path, "#0eff00", 5);                 } else if (count1 == 1) {                     sp.graphics.drawLines(0, 0, path1, "#0eff00", 5);                 } else if (count1 == 2) ...

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