大约有 4,270 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0129 秒)
Laya_社区(3826) Laya3.0_api(134) Laya2.0_文档(126) Laya3.0_文档(58) Laya2.0_api(57) laya_api(56) Laya_示例(7) Laya2.0_示例(6)
...编辑器 请配置 这个怎么解决? 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 问题状态 最新活动: 2017-11-08 15:44 浏览: 1982 关注: 2 人
来源: Laya_社区 发布时间: 20171108
...wImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite toggle : Boolean 指定按钮按下时是否是切换按钮的显示状态。 Button toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定...
来源: Laya2.0_api 发布时间: 20190513
...{ //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stag...
来源: Laya_社区 发布时间: 20170313
...ya.Prefab作为属性时,例如: @property( { type : Laya.Prefab } ) //加载 Prefab 的对象 private prefabFromResource: Laya.Prefab; 此时,需要按动图4-5所示,从assets目录下,拖入prefab资源。运行时会直接获取到加载实例化后的prefab。 (动图4-5) Copyrigh...
来源: Laya3.0_文档 发布时间: 20251010
...例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对象的显示位置。 animation.y = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对...
来源: Laya3.0_api 发布时间: 20231115
...herited from PixelLineSprite3D.load Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/reflectionProbe/ReflectionProbe" ReflectionProbeMode ReflectionProbe constructor _extra _isScen...
来源: Laya3.0_api 发布时间: 20231102
...s Main { public function Main() { //初始化引擎 Laya.init(600, 400); //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //示例UI界面 var testView:TestView = new TestView(); L...
来源: Laya_示例 发布时间: 20260303
...s Main { public function Main() { //初始化引擎 Laya.init(600, 400); //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //示例UI界面 var testView:TestView = new TestView(); L...
来源: Laya2.0_示例 发布时间: 20200319
...只是游戏本身还是差了不少 daohu • 2017-08-22 14:18 第一次加载比较慢,刷新一下再试试 daohu • 2017-08-22 14:19 我这游戏没有可参考性,毕竟不是一般游戏类型,你要源码没啥用啊。功能上无非都是layaAir提供的一些方法组合起来罢了...
来源: Laya_社区 发布时间: 20170816
...ng):Sprite[static] 根据图片地址创建一个新的 Sprite 对象用于加载并显示此图片。 Sprite fromParentPoint(point:Point):Point 将父容器坐标系坐标转换到本地坐标系。 Sprite getBounds():Rectangle 获取本对象在父容器坐标系的矩形显示区域。 注意...
来源: laya_api 发布时间: 20170929