大约有 846 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0072 秒)
Laya_社区(499) Laya3.0_api(111) Laya3.0_文档(71) Laya_示例(45) Laya2.0_api(42) laya_api(39) Laya2.0_文档(30) Laya2.0_示例(9)
...景颜色。 onInit(); } private function onInit():void { clip = new Clip("resource/ui/clip_num.png", 10, 1);//创建一个 Clip 类的实例对象 clip ,传入它的皮肤skin和横向分割数量、竖向分割数量。 clip.autoPlay = true;//设置 clip 动画自动播放。 clip.interval = 100;/...
来源: Laya3.0_api 发布时间: 20231115
...TAEGETS中项目标签页,在General中设置项目的横竖屏 2.修改resource目录下config.ini文件中orientation的值与设置的横竖屏值匹配 orientation=2 //竖屏:IOS home键在下orientation=4 //竖屏:IOS home键在上orientation=8 //横屏:IOS home键在左orientation=16 /...
来源: Laya_社区 发布时间: 20190618
...Sprite3D ComponentNode Node EventDispatcher ObjectImplements IUpdate, laya.resource.ICreateResource, laya.d3.core.ICloneSubclasses BaseCamera, LightSprite, RenderableSprite3D, Terrain Sprite3D 类用于实现3D精灵。 Public Properties Hide Inherited Public Properties Show Inherited Public Propert...
来源: laya_api 发布时间: 20170929
...ge.html:1 j.onmessage @ gamePage.html:1 2code.js:57322 HHHH false VM1768:1 Resources already exist,is repeated loading: https://piggy.q1.comres/sound/BGM.mp3 console.warn @ VM1768:1 Loader.cacheRes @ code.js:12995 SoundManager.playSound @ code.js:4963 SoundManager.playMusic @ code.js:4988 GameEx.onL...
来源: Laya_社区 发布时间: 20180531
...现类似以下提示的警告。 Failed to load 'http://localhost:18094/resources/ddlx_02/ddlx_02.atlas' Unexpected token 'd', "ddlx_02.pn"... is not valid JSON 这是由于,虽然spine的atlas和我们引擎的图集文件atlas同名,但不是同样的东西。我们的图集信息是Json格...
来源: Laya3.0_文档 发布时间: 20251128
...lay = false; SoundManager.Instance.playMusic111("resources/music/test/FY-0079.wav"); }); } } import { JsonTool } from "src/tools/JsonTool"; import { ResourceManager } from "./ResourceManager"; declare function testmusic_cn_ios(accountI...
来源: Laya_社区 发布时间: 20250930
...te();//创建一个 Sprite 类的实例对象 sprite 。 sprite.loadImage("resource/ui/bg.png");//加载并显示图片。 sprite.x = 200;//设置 sprite 对象相对于父容器的水平方向坐标值。 sprite.y = 200;//设置 sprite 对象相对于父容器的垂直方向坐标值。 sprite.pivo...
来源: Laya3.0_api 发布时间: 20231115
...d3.core.materialClasspublic class BaseMaterialInheritanceBaseMaterial laya.resource.ResourceImplements laya.d3.core.ICloneSubclasses ExtendTerrainMaterial, GlitterMaterial, PBRMaterial, ShurikenParticleMaterial, StandardMaterial, TerrainMaterial, WaterDetailMaterial, WaterMaterial BaseMaterial 类...
来源: laya_api 发布时间: 20170929
...建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对象的显示位置。 animation.y = 200;//设置 animation 对象的属性 x 的值...
来源: Laya3.0_api 发布时间: 20231115
...成的资源。 批量预加载的示例代码如下: ```typescript var resource:Array = [ "xx.ls", "xx/xx.lh", "xx/xx.lmat", "xx/xx.png", "xx/xx.lm", "xx/xx.ltc", "xx/xx.lani", ]; //批量预加载 Laya.loader.create(resource, Laya.Handler.create(this, this.onLoaded)); onLoaded(): void { //加载...
来源: Laya2.0_文档 发布时间: 20210714