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

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

351. laya1.0 的3D项目,GPU型号为Adreno 405的加载3D资源时会报错 [ 43%]

...akeCurrent:792 error 3003 (EGL_BAD_ALLOC) 08-20 16:53:49.060 309-376/? E/BufferQueueProducer: [SurfaceView] connect(P): already connected (cur=1 req=1) 08-20 16:53:49.060 24823-24871/? E/libEGL: eglCreateWindowSurface: native_window_api_connect (win=0x559096cbb0) failed (0xffffffea) (already connect...

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

352. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 43%]

...or() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.gra...

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

353. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 42%]

....text = "Hello Layabox"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的...

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

354. 物理引擎显示旋转问题 [ 41%]

...eframes: true,                 // wireframeBackground: '#00ff00', //当wireframes为true的时候,wireframeBackground可以设置背景颜色                 showAngleIndicator: true, //角度指示器                 width: 750,           ...

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

355. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 41%]

...326,"y":188,"skin":"comp/checkbox.png","label":"checkBox2","labelColors":"#ff0000"},"type":"CheckBox"},{"type":"Box","child":[{"props":{"y":70,"skin":"comp/progress.png","width":150,"height":14,"sizeGrid":"4,4,4,4","name":"progress"},"type":"ProgressBar"},{"props":{"y":103,"skin":"comp/label.png","t...

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

356. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...phicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调用。 设置容器的autoSize为true。 var sp=...

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

357. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 38%]

...上给的例子。 https://mdn.github.io/webaudio-examples/stream-source-buffer/ 开发者用手机或者微信打开这个地址测试下你手机的支持度。 ![L`6Q322IAT7251L4{J1PWW](img/L`6Q322IAT7251L4{J1P]WW.png)。 ​ 这个是个测试的连接,协议也是https的,开发者在调用...

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

358. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终颜色为#ff0000 redText: { col...

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

359. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 36%]

... Laya.init(1334,750,WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(100,50); //发光滤镜 creteGlowFilter(); //阴影滤镜 createShadeFilter(); } /**创建发光滤镜位图**/ private function creteGlowFilter():void { //创建发光滤镜 var glowFilter:G...

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

360. 有关Laya3D碰撞检测疑问 [ 36%]

... planeMat: Laya.StandardMaterial = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider...

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