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

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

731. webstorm能编译ts代码到bundle.js 里面吗 [ 43%]

...引用插件模块 ideModuleDir = "/Applications/LayaAirIDE 2.app/Contents/Resources/app/node_modules/"; workSpaceDir = "/test/layademos/fathero"; let gulp = require(ideModuleDir + "gulp"); let browserify = require("/usr/local/lib/node_modules/" + "browserify"); let source = require("/usr/local/lib/...

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

732. videoNode在安卓上不能播放 [ 43%]

...e.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的dem...

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

733. Cannot read property 'load' of null [ 43%]

... 代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_in...

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

734. Sprite-切换纹理 [ 43%]

...ckage { import laya.display.Sprite; import laya.display.Stage; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Sprite_SwitchTexture { private var texture1:String = "../../../../res/apes/monkey2.png"; private var texture2:Strin...

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

735. 其他(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 43%]

... ```javascript ThreadMode=2; ``` **TIPS: ios版本:在工程目录下的resource\config.ini android版本:在工程目录下的assets\config.ini

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

736. 动画不显示 [ 43%]

...import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugPanel;     import laya.debug.DebugTool;     import lay...

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

737. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 42%]

...t;code>Texture</code> 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this...

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

738. laya.ui.ProgressBar_API3.0 [ 42%]

...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("resource/ui/progress.png");//创建...

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

739. laya.ui.HSlider_API3.0 [ 42%]

...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { hSlider = new HSlider();//创建一个 HSlider 类的实例对象 hS...

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

740. laya.ui.VSlider_API3.0 [ 42%]

...ge.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { vSlider = new VSlider();//创建一个 VSlider 类的实例对象 vS...

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