大约有 2,831 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0065 秒)
Laya_社区(1671) Laya3.0_api(668) Laya2.0_文档(133) Laya2.0_api(128) laya_api(122) Laya3.0_文档(82) Laya2.0_示例(16) Laya_示例(11)
...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
...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
...引用地址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
...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
...ateElement('script'); myScript.src = jspath; //指定脚本路径 myScript.type = "text/javascript"; //指定脚本类型 myScript.defer = defer;//true; //程序下载完后再解析和执行 theHead.appendChild(myScript); //把dom挂载到头部 }这是我使用的动态加载js的脚本。 func...
来源: Laya_社区 发布时间: 20180316
...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
...小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于使用matterjs物理引擎鼠标问题 ios14系统下 blendMode='lighter' 图片异常 ...
来源: Laya_社区 发布时间: 20200810
... // 移动端输入提示符 inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffff...
来源: Laya_社区 发布时间: 20180612
...集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
...加载引擎需要的资源 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