大约有 1,273 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0065 秒)
Laya_社区(723) Laya2.0_文档(155) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(24)
...ane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.directi...
来源: Laya_示例 发布时间: 20241117
... laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...
来源: Laya2.0_文档 发布时间: 20210715
... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Loader = Laya.Loader; var Stat = Laya.Stat; var Particle2D = Laya.Particle2D; (function () { // Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.init(Browse...
来源: Laya_社区 发布时间: 20170103
...许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.Scene.addChild(OBJ); })); 附件 : --> Z...
来源: Laya_社区 发布时间: 20201022
...回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 L...
来源: Laya2.0_文档 发布时间: 20210715
...trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundManager.playSound("res/sounds/btn.mp3", 1, new Handler(this, onComplete)); }播放声音或音效的第3个参数就...
来源: Laya_社区 发布时间: 20170330
...dius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 } ]; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var HitArea = Laya.HitArea; var step = 0; Laya.init(1285, 727, Laya.WebGL); var stage = Laya.stage; var loader = Laya.loader; stage.bgColor = "#00ffff"; stage.alignH = "center...
来源: Laya_社区 发布时间: 20171031
...:import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement()...
来源: Laya_社区 发布时间: 20171011
...r AniConfPath = 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20170920
...isplay.Text; import laya.display.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { ...
来源: Laya_社区 发布时间: 20170918