大约有 959 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(662) Laya2.0_文档(158) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(27) Laya3.0_api(20) laya_api(3) Laya2.0_api(2)
...e3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall与三...
来源: Laya2.0_文档 发布时间: 20210715
...omplete():void { //创建动画模板dizziness //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对 Animation.createFrames(aniUrls(stand + "000", 5), stand + "000"); Laya.stage.addChild(roleAni); roleAni.interval = 12...
来源: Laya_社区 发布时间: 20170821
....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加...
来源: Laya_社区 发布时间: 20170725
...("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChild(sp) as Laya.Sprite3D; camera.convertScreenCoordToOrthographicCoord(pos, translate); ta...
来源: Laya_社区 发布时间: 20191206
...LE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var co...
来源: Laya2.0_文档 发布时间: 20210714
...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...
来源: Laya3.0_文档 发布时间: 20251010
...ya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=(...
来源: Laya_社区 发布时间: 20170626
...or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} callback Callback function * @returns {undefined} * @see {@link Root#load} */ function load(filename, root, callback) { if (typeof root === "function") { callback = root; r...
来源: Laya3.0_文档 发布时间: 20250104
...6大小的地图块 this.isShow = true; Laya.loader.load(name,Laya.Handler.create(this,this.drawImg)); } drawImg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.texture = texture; } clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRe...
来源: Laya_社区 发布时间: 20190315
...g888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('c...
来源: Laya_社区 发布时间: 20180122