大约有 219 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(141) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya3.0_文档(7) Laya_示例(6) Laya2.0_示例(5)
...a package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp....
来源: Laya2.0_文档 发布时间: 20210715
...t;>>>>>>>>className:layaair/game/browser/ExportJavaFunction,methodName:GetDeviceInfo 2018-11-26 18:31:47.964 4749-4838/com.layabox.dotJourney E/LayaBox: >>>>>>>>>>>>before 2018-11-26 18:31:47.975 4749-4838/com.layabox.dotJourney E/LayaBox...
来源: Laya_社区 发布时间: 20181126
...错 runtime运行报错! 导微信小程序报错window.focus is not a function 真机环境找不到window---cant find variable: window stack 小游戏项目 加载有中文的json文件 报错 2.2.0beta4,微信上动态合批报错. 关于逻辑贞更新间隔机制、时间和其他一些Timer...
来源: Laya_社区 发布时间: 20170216
...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...
来源: Laya3.0_文档 发布时间: 20251010
...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...
来源: Laya3.0_文档 发布时间: 20250104
...vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); }); } plyr.setup(video); } } new LayaUISample; 编译运行代码,发现网页已经可以播放视频了。开发者可能注意到这里我们初始化引擎的时候是这样的: Laya.ini...
来源: Laya3.0_文档 发布时间: 20251010
...: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路径 this._everyPath ...
来源: Laya3.0_文档 发布时间: 20230303
...onsole.log(`强制清理了 ${total} 个纹理`); // 场景切换时清理 function onSceneSwitch() { atlasManager.cleanupUnusedTextures(); } 清空图集 //接口 clear(): void 清空所有纹理,释放大纹理资源。会清理 RenderTarget,需要注意引用关系。 //使用示例 // 清空...
来源: Laya3.0_文档 发布时间: 20260131
...ipt //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干...
来源: Laya2.0_文档 发布时间: 20210714