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

大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

4001. 读本地文件必须是ASCII编码 [ 46%]

...: 1487 关注: 3 人 bawfnpdc • 2018-05-31 17:26 MiniAdpter.getUrlEncode=function(url,type){ if(url.indexOf(".fnt")!=-1) return "utf8"; else if(type=="arraybuffer") return ""; return "utf8"; // return "ascii"; } 现在Json转ASCII是有...

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

4002. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 46%]

...nfo.buffer 是 BK.Buffer 类型,需要如何用laya的Image显示出来?function callback(openID, BuffInfo){ if(openID == openID1) { var buff = BuffInfo.buffer; var width = BuffInfo.width; var height = BuffInfo.height; BK.Script.log(0,0,"headeBuff :"+ openId + " buff:"+ buff + " width:"+ width +"...

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

4003. [LayaAir3]3.2spine动画和3.0.8效果不一样 [ 46%]

...时会报错是什么原因的 sha3.ts:210 Uncaught TypeError: ft is not a function at node_modules/@noble/hashes/esm/sha3.js (sha3.ts:210:43) at bundle-f6bf8.js:1:232 at node_modules/viem/_esm/utils/hash/keccak256.js (bundle-f6bf8.js:1:21864) at bundle-f6bf8.js:1:232 at encodeEventTopics.ts:25:1 at...

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

4004. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 46%]

...ic exportSceneToJson:boolean=true; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("script/GameUI.ts",GameUI); reg("script/GameControl.ts",GameControl); reg("script/Bullet.ts",Bullet); reg("script/DropBox.ts",DropBox); } } GameConfig.init();编译之后变成:/* * ...

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

4005. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 46%]

...``typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[thi...

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

4006. 代码模式的快捷键设置(ActionScript-IDE篇(AS3)-代码模式基础) [ 46%]

... 二、常用快捷键(General) | **按 键(Press)** | **功能( Function)** | | --------------------- | ---------------------------------------- | | `Ctrl + Shift + P,F1` | 显示命令面板 Show Command Palette | | `Ctrl + P` | 快速打开 Quick Open | | `Ctrl + Shift + N` | 新窗...

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

4007. laya.d3.core.particleshuriken.module.Emission_API3.0 [ 46%]

...ype parameter Constructor Property Method Accessor Object literal Variable Function Type alias Enumeration Interface

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

4008. 分享:使用 Chart.js 创建图标 [ 46%]

...方式引入index.html启动文件package { public class FormDemo { public function FormDemo() { // 初始化舞台 Laya.init(400,400); // 图标数据 var data:Object = { labels: [ //最上方矩形的标签提示和颜色设置 "Red", "Blue", "Yellow" ], datasets: [ { data: [300, 50, 100],//所占...

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

4009. laya.d3.core.render.posteffect.GaussianDoF_API3.0 [ 46%]

...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited method Inherited accessor Enumeration Interface Static method

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

4010. Sprite3D-Sprite3D加载 [ 46%]

...s.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; scene.ambientCol...

来源: Laya_示例 发布时间: 20260303