• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,546 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0096 秒)

1511. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 33%]

...tring): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面...

来源: Laya3.0_文档 发布时间: 20250104

1512. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 32%]

... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script = Laya.Browser.document.createElement("script");`创建一个script...

来源: Laya2.0_文档 发布时间: 20210714

1513. ts加密md5码封装 [ 31%]

...ude": [ "node_modules" ] } test: let str = Md5.Instance.get_md5("123456"); console.log(str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { r...

来源: Laya_社区 发布时间: 20190321

1514. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 31%]

... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 `var script:any = Laya.Browser.document.createElement("script");`创建一个scri...

来源: Laya2.0_文档 发布时间: 20210715

1515. conch.config.getUsedMem() 安卓包中 定时运行报错 [ 30%]

...dMem() 安卓包中 定时运行报错 Laya工程1.7.10beta,setInterval("console.log(conch.config.getUsedMem())", 1) 安卓包中报错 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自...

来源: Laya_社区 发布时间: 20180322

1516. 【简单跑酷--JS版】---Lv.6 终篇 [ 28%]

...type var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor(); this.addChild(this.mapFloor); //飞行能量条 this.flyEnergy = new Hp(Hp.HP_TYPE_ENERGY); th...

来源: Laya_社区 发布时间: 20160803

1517. laya.display.Sprite_API3.0 [ 28%]

...//给 shape 对象添加点击事件侦听。 } function onClickSprite() { console.log("点击 sprite 对象。"); sprite.rotation += 5;//旋转 sprite 对象。 } function onClickShape() { console.log("点击 shape 对象。"); shape.rotation += 5;//旋转 shape 对象。 } example import Sprite = ...

来源: Laya3.0_api 发布时间: 20231115

1518. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 28%]

...(){ function Client() { } Client.prototype.start = function() { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); ``` 下面我们简单的讲解下这两段代码。 ` var script:Object = Browser.document.createElement("script");`创建一个scrip...

来源: Laya2.0_文档 发布时间: 20210715

1519. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 28%]

... { function Client() { } Client.prototype.start = function () { // body... console.log("调用方法"); }; return Client; })(); console.log("我被加载进来了"); 下面我们简单的讲解下这两段代码。 var script:any = Laya.Browser.document.createElement("script");创建一个script标...

来源: Laya3.0_文档 发布时间: 20240910

1520. 3D中摄像机绕物体旋转该如何实现? [ 27%]

...in); } protected AroundByMobileInput(): void { if (this.TouchCount == 1) { console.log(this.targetAngles); this.targetAngles.y -= this.GetAxisX * this.mouseSettings.pointerSensitivity; this.targetAngles.x += this.GetAxisY * this.mouseSettings.pointerSensitivity; //Range. this.targetAngles.y = this.C...

来源: Laya_社区 发布时间: 20170714