大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0117 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...需要分组。 * 分组资源在地图变化时自动销毁 * **/ public function Load(url:String,isGroup:Boolean):void { _path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = nul...
来源: Laya_社区 发布时间: 20180425
...e(this,this.onLoaded)); } private createButton(skin: string,name:string,cb:Function,index:number): Button { var btn: Button = new Button(skin,name); Laya.stage.addChild(btn); btn.on(Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return b...
来源: Laya2.0_示例 发布时间: 20260303
...er.playByFrame(0,1.0,0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifish2那个。那个加了Laya...
来源: Laya_社区 发布时间: 20170926
...rrainScene/XunLongShi.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/...
来源: Laya_示例 发布时间: 20260303
... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...
来源: Laya_社区 发布时间: 20161103
...下! 2017-03-03 0 0 分享 微博 QZONE 微信 a694284699 赞同来自: (function() { var Stage = Laya.Stage; var Button = Laya.Button; var Dialog = Laya.Dialog; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_B...
来源: Laya_社区 发布时间: 20170303
...载界面的关闭,需要删除这段代码。 window.hideSplashScreen = function() { window.loadingView.hideLoadingView(); } 步骤2: 调用loadingView.loading(nPercent)更新进度条。 伪代码如下: var nPercent=0; var image1 = document.createElement('img'); image1.onload=function() { i...
来源: Laya3.0_文档 发布时间: 20251010
...; var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...
来源: Laya_示例 发布时间: 20260303
....module.shape.SphereShape",e);var n=t.prototype;return n._getShapeBoundBox=function ReferenceError: ConchShader is not defined ...
来源: Laya_社区 发布时间: 20180428
...ic class Text_BitmapFont { private var fontName:String = "diyFont"; public function Text_BitmapFont() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20260303