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

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

381. HTMLIframeElement 使用出错?请大神指点 [ 80%]

... = Laya.HTMLIframeElement; var iHtml = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="http://www.baidu.com"; 一启动运行就现以下错误  Error processing "variables": TypeError: Cannot read property 'length' of undefined at trimProperty (d:\Program Files\LayaIDE\resources\...

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

382. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 80%]

...         bg.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg);         bg2 = new Sprite();         bg2.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg2);         bg2.scale(3, 3);         bg2.pivot(50,50)         //创建mas...

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

383. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 80%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);            //画矩形             this.sp.graphics.drawRect(20, 20, 100, 50, "#ffff00");         }     } } new laya.Sprite_DrawShapes(); ``` 代码运行效果: ​...

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

384. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 80%]

...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...

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

385. 加载TiledMap 不显示 [ 80%]

...radiusX, radiusY, 0, radiusY * 2, color);         Laya.stage.addChild(this.sprite);     }      // private createMap (): void//, undefined, new Point(1600, 800)     // {     //  this.tiledMap = new TiledMap();     //  // Laya.loader.create(["res/til...

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

386. 文本-滚动文本 [ 80%]

...st Text = Laya.Text, Event = Laya.Event; this.txt = new Text(); Laya.stage.addChild(this.txt); this.txt.overflow = Text.SCROLL; this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" + "Layabox是HTML5引擎技术...

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

387. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 80%]

...tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5));         camer...

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

388. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 80%]

...ree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "u...

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

389. UI-Button [ 80%]

...ton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; pri...

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

390. UI-Button [ 80%]

...ton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; pri...

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