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

大约有 2,831 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0065 秒)

2601. Scene.load加载的时候无法正确的识别ResourceVersion [ 45%]

...ginURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return originURL; } 在version.json,也就是manifest这个表中存放在这个位置: "scene/001/Scene/Library/unity ...

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

2602. laya.d3.core.light.AreaLightCom_API3.0 [ 45%]

...ked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBakedType maxBounces power shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shadowStrength shape size spread Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy on...

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

2603. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 45%]

...引用地址const res = [{ url: setStaticPrefix("card/card_item_bg.png"), type: Laya.Loader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } return `images/${url}` }然后资源导出...

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

2604. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 45%]

...e Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize 父容器的宽度和高度无法获取 this.autoSize = true; //初始化的...

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

2605. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 45%]

...ateElement('script'); myScript.src = jspath; //指定脚本路径 myScript.type = "text/javascript"; //指定脚本类型 myScript.defer = defer;//true; //程序下载完后再解析和执行 theHead.appendChild(myScript); //把dom挂载到头部 }这是我使用的动态加载js的脚本。   func...

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

2606. VSlider属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 45%]

...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.VSlider)。 ## 2、通过LayaAirIDE创建VSlider组件 ### 1.1 创建VSlider ​ 点击选择资源面板里的 VSlider 组件资源,拖放到页面编辑区,即可添加 VSlider 组件...

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

2607. wkwebview使用异常 [ 45%]

...小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于使用matterjs物理引擎鼠标问题 ios14系统下 blendMode='lighter' 图片异常 ...

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

2608. TextInput 在panle里滚动后输入位置错乱,求解 [ 45%]

...   // 移动端输入提示符             inputText.prompt = "Type some word...";                          // 设置字体样式             inputText.bold = true;             inputText.bgColor = "#666666";             inputText.color = "#ffff...

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

2609. 人物行走图动画 [ 45%]

...集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚...

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

2610. 发现TimeLine的一些问题,像是BUG [ 45%]

...加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=c...

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