大约有 160 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0148 秒)
...提示“再次点击后退键退出游戏”,如果去掉这个提示 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带的,也不显示 JS 是没有自动补全提示吗 LayaAir IDE为什么在index.html中书写html代码时没有代码提示功能呢? 打开l...
来源: Laya_社区 发布时间: 20170825
...写如下代码:** ```typescript // 程序入口 class GameMain{ //资源路径 private skin1:string = "checkbox.png"; private skin2:string = "checkbox.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.st...
来源: Laya2.0_文档 发布时间: 20210715
...不可用 LayaAirIDE无法打开代码编辑器,原因初次安装填写路径错误 问题状态 最新活动: 2017-12-08 09:45 浏览: 1611 关注: 4 人 Monica • 2017-12-08 12:03 由于npm账号出现了问题,所以暂时更新不了... 你们公司是只有你这边安装出现了问题...
来源: Laya_社区 发布时间: 20171206
...alse 是否使用图集资源 Default value atlasPath: string = null 图集路径,默认使用与swf同名的图集 Returns void loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个图片。相当于...
来源: Laya3.0_api 发布时间: 20231115
...代,存放于`项目根目录/bin/res`目录下,注意要确保资源路径与资源名称正确。 #### screenModeDemo.ts 示例代码如下: ```javascript function showScreen() { //图片 var img = new Laya.Image(); img.centerX = 0; img.centerY = -70; img.skin = "res/monkey2.png"; Laya.stage...
来源: Laya2.0_文档 发布时间: 20210715
...Animation.ts:99 设置提供数据的类。 Parameters classStr: string 类路径 Returns void effectData set effectData(uiData: any): void Defined in laya/display/EffectAnimation.ts:120 设置动画数据。 Parameters uiData: any Returns void filters get filters(): any[] set filters(value: any[]):...
来源: Laya3.0_api 发布时间: 20231115
...ined in laya/resource/Texture2D.ts:240 加载纹理 Parameters url: string 路径 complete: Handler 处理时间 Returns void Globals "laya/resource/Texture2D" Texture2D constructor _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture errorTexture grayTexture normalTexture whiteT...
来源: Laya3.0_api 发布时间: 20231115
...[/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size=14][code]// Loads the file at the specified path and uses it Laya.loader.create([{ url: "xx.zip", type:"ZIP",constructPa...
来源: Laya_社区 发布时间: 20211227
...c(): string Defined in laya/device/media/Video.ts:244 获取当前播放源路径。 Returns string currentTime get currentTime(): number set currentTime(value: number): void Defined in laya/device/media/Video.ts:251 设置和获取当前播放头位置。 Returns number Defined in laya/device/media...
来源: Laya3.0_api 发布时间: 20231102
...加载直接创建动画 Parameters path: string 要加载的动画文件路径 Optional complete: Handler 加载完成的回调函数 Returns void loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from Text.loadImage Defined in laya/display/Sprite.ts:1578 加载并显示一个...
来源: Laya3.0_api 发布时间: 20231115