大约有 7 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
... // sample rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel ...
来源: Laya2.0_文档 发布时间: 20210714
... // sample rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel ...
来源: Laya2.0_文档 发布时间: 20210715
... // sample rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < ...
来源: Laya2.0_文档 发布时间: 20210715
... 350; } } //激活启动类 new Main(); ``` 以上是兼容1.0的代码。 2.0也可以用如下方式,创建一个mainscene,把两个页面拖入场景中,设置背景颜色,如下图 注意:设置页面场景背景颜色,只是设计场景时候的参照,实际运行并无效,需...
来源: Laya2.0_文档 发布时间: 20210715
...1不支持的透明通道,但是ETC2需要在OpenGL ES 3.0(对应webGL 2.0 )的环境下,而当前尚未全面普及,所以LayaAir引擎及工具也只支持了ETC1的纹理压缩。未来,当小游戏平台大多数都支持webGL 2.0后,我们也会跟进支持ETC2。 ### 二、使用...
来源: Laya2.0_文档 发布时间: 20210714
...xx的版本,可以用命令查看node版本 例如: ```bash $ node -v v4.2.0 ``` 这个版本就可以。 ### 2. 安装 layadcc ```bash npm install -g layadcc ``` 如果顺利安装完,就可以在命令行中直接执行layadcc。 ### 3.使用方法 ``` layadcc 资源目录 [options] options: -...
来源: Laya2.0_文档 发布时间: 20210714
...,物理组件的可视化编辑使用。物理的编辑也是LayaAirIDE 2.0的重要新特性之一,希望大家能通过本文更全面的了解LayaAir引擎与IDE,快速上手物理组件的使用,快捷的开发物理小游戏。 [TOC] ## 一、基础知识 ### 1.1 学习本文需要的...
来源: Laya2.0_文档 发布时间: 20210714