大约有 23 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0031 秒)
...操作都被引擎接管了。 #### 3,代码使用预设 ``` 下面采用伪代码: 先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getIt...
来源: Laya2.0_文档 发布时间: 20210714
...用来描述当图像的明亮区域失焦时出现的令人愉快的视觉伪影。 图5-1 GaussianDoF参数类型: 参数类型 参数解释 Far Start 景深开始值 Far End 景深结束值 Max Radius 最大模糊景深半径 6.引擎自定义后处理类型 在3.0引擎中编写好自己的后...
来源: Laya3.0_文档 发布时间: 20240910
...文件的地方,增加一次判断是否为LayaNative运行环境的,伪代码如下所示: ```javascript if(window.conch) { ...加载 "soundConfig-LayaPlayer.json" } else { ...加载 "soundConfig-json" } SoundManager.playSound(soundJson[0].url,1); .... SoundManager.playSound(soundJson[1].url,...
来源: Laya2.0_文档 发布时间: 20210715
...View(); } 步骤2: 调用loadingView.loading(nPercent)更新进度条。 伪代码如下: var nPercent=0; var image1 = document.createElement('img'); image1.onload=function() { if(window.loadingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image1.src = "a.png"; var image2 = docu...
来源: Laya3.0_文档 发布时间: 20250103
...网格模式,自己感受下。 3.我感觉你的需求可能是一个伪需求,可能你自己也不知道自己做的是什么,有没有必要这么做。如果可以,你可以截个图看看。 说的就这么多了,有错望指正。 2017-09-08 1 2 分享 微博 QZONE 微信 devi...
来源: Laya_社区 发布时间: 20170904
... } ``` **步骤2:** 调用`loadingView.loading(nPercent)`更新进度条 伪代码如下: ```javascript var nPercent=0; var image1 = document.createElement('img'); image1.onload=function() { if(window.loadingView){ nPercent+=33; window.loadingView.loading(nPercent); } } image1.src = "a.png"; var...
来源: Laya2.0_文档 发布时间: 20210715
... 关联的常数。Keyboard NUMPAD : int = 21[static] 与数字键盘的伪键控代码 (21) 关联的常数。Keyboard NUMPAD_0 : int = 96[static] 与数字键盘上的数字 0 的键控代码值 (96) 关联的常数。Keyboard NUMPAD_1 : int = 97[static] 与数字键盘上的数字 1 的...
来源: laya_api 发布时间: 20170929
... 关联的常数。Keyboard NUMPAD : int = 21[static] 与数字键盘的伪键控代码 (21) 关联的常数。Keyboard NUMPAD_0 : int = 96[static] 与数字键盘上的数字 0 的键控代码值 (96) 关联的常数。Keyboard NUMPAD_1 : int = 97[static] 与数字键盘上的数字 1 的...
来源: Laya2.0_api 发布时间: 20190513
...复使用skeleton报错,但每次new Laya.Skeleton() 就没问题。 伪代码: const temp = new Laya.Templet(); temp.parseData(xxx, xxx, 0); // 从对象池中获取skeleton const skeleton = Laya.Pool.getItemByClass('abc', Laya.Skeleton); skeleton.init(temp, 0); // skeleton使用...
来源: Laya_社区 发布时间: 20181120
...MPAD: number = 21 Defined in laya/events/Keyboard.ts:111 与数字键盘的伪键控代码 (21) 关联的常数。 Static NUMPAD_0 NUMPAD_0: number = 96 Defined in laya/events/Keyboard.ts:113 与数字键盘上的数字 0 的键控代码值 (96) 关联的常数。 Static NUMPAD_1 NUMPAD_1: number = ...
来源: Laya3.0_api 发布时间: 20231115