大约有 1,234 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(703) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...:core:3.3.0' // ts脚本,点击按钮创建二维码并显示 private onBtnClickShare() { let base64OfQrCode:string = androidplat.createQrCode("https://www.layabox.com/", 180, 180); if (base64OfQrCode.length>0) { let i...
来源: Laya_社区 发布时间: 20200729
...ueueT<T> { constructor() { this.data=new Array<T>(); } private data: Array<T>; push = (item: T) => this.data.push(item); pop = (): T | undefined => this.data.shift(); GetLenght=():number=>{return this.data.length;} Dispose=()=>{ for(let i in this.data){ ...
来源: Laya_社区 发布时间: 20191206
... Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运行后,按钮被按下时,动画效果如动...
来源: Laya2.0_文档 发布时间: 20210715
...信 leeq3000 赞同来自: 参考 3D基础 -- 2D和3D混合 70-73行代码 private var translate:Vector3 = new Vector3(200, 100, 0);//理解为屏幕坐标,左上角为(0,0) var mesh:MeshSprite3D = scene.addChild(new MeshSprite3D(Mesh.load("sphere-Sphere001.lm"))) as MeshSprite3D; ...
来源: Laya_社区 发布时间: 20161215
...游戏报错 the .lh file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addCh...
来源: Laya_社区 发布时间: 20180323
...预编译Shader。修改initShader方法 ```typescript //初始化shader private initShader(): void { ...... //加载获取得到shaderObj let arr :Array= this.shaderObj["GlowingEdgeMaterial"]; for (let index = 0; index 使用的官方地形shader示例  ### 2.提取信息,预编译S...
来源: Laya2.0_文档 发布时间: 20210714
...,用来实现自定义样式的鼠标提示和参数携带等。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标提示<b>粗体</b><br>换行"; //自定义的鼠标提示 btn1.too...
来源: Laya3.0_api 发布时间: 20231102
...ader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("planCrashed.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画...
来源: Laya2.0_文档 发布时间: 20210715
...,用来实现自定义样式的鼠标提示和参数携带等。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标提示<b>粗体</b><br>换行"; //自定义的鼠标提示 btn1.too...
来源: Laya3.0_api 发布时间: 20231115
...你的链接类提取出来放置到项目的src目录下。 参考:private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onCom); l...
来源: Laya_社区 发布时间: 20151216