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

大约有 1,008 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0041 秒)

701. Sprite-显示图片 [ 49%]

...引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler...

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

702. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...果可以去查看2D基础篇中的文本部分。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage...

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

703. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...result; } 最后,在LayaExtInit函数中,导出初始化功能,使得JavaScript代码可以调用这些原生功能。 extern "C" { LAYAEXTAPI void LayaExtInit(jsvm_env env, jsvm_value exp) { ... // 注册Steam初始化函数 jsvm_value fnInitSteam; jsvm_create_function(env, "initializeSteam",...

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

704. 计时器-延迟调用 [ 49%]

...引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Timer_CallLater { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Han...

来源: Laya2.0_示例 发布时间: 20260106

705. 搭建开发环境(TS代码编译器)(TypeScript-LayaAir基础篇(TS)-快速上手) [ 49%]

...这个,LayaAirIDE里就能通过这个Compiler将TypeScript编译成为JavaScript。 #### 2.3 检查TypeScript编译环境版本 在命令行输入“tsc -v” 命令可查看当前TypeScript编译的版本,如图3-2所示。 ```typescript tsc -v ``` ![图3-2](img/3-2.png) (图3-2) 如果...

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

706. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 49%]

...essBar,创建出符合自己需要的进度条。 **示例代码:** ```javascript package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar...

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

707. Sprite-缓存为静态图像 [ 49%]

...引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_Cache { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至C...

来源: Laya2.0_示例 发布时间: 20260106

708. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 49%]

...新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaNative不支持 new_element1.src = jsPAth document.body.appendChild(new_element1);//添加到body节点的末尾 new_element1.onload = fun } 熊...

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

709. as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? [ 49%]

...0px; height:100px; margin-top:15px;"></div> <script type="text/javascript"> var qrcode = new QRCode(document.getElementById("qrcode"), { width : 100, height : 100 }); function makeCode (_qrchr) { qrcode.makeCode(_qrchr); } makeCode("asfasdfas5151a31fsefasefsafe"); </script> <...

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

710. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 49%]

... 156*****215 • 2019-05-14 18:35 能不能在 code.js执行后,外部用javascript处理下 LayaCanvas 让其无滚动条? 156*****215 • 2019-05-14 18:37 主要是代码是一样的,火狐和谷歌显示正常,edge有滚动条 Laya_Aaron • 2019-05-14 19:59 @156*****215:这个问题应...

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