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

大约有 1,735 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0074 秒)

121. 射线BUG [ 83%]

...function MousePickingScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.camera = this.addChild(new L...

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

122. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 83%]

...文件模式不会生成代码类,如果不是非文件模式,就没法new 这个页面类)如图1图2所示: ![1](img\ide3.png)(图1) ![2](img\ide2.png)(图2) 设置完成之后按F12保存导出UI,开始编写逻辑代码。 ### 二、代码逻辑处理 切换到代码模式下, 然后...

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

123. UI组件对齐方式奇奇怪怪 [ 83%]

UI组件对齐方式奇奇怪怪 var _parent = new Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的botto...

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

124. localRotationEulerY旋转位置错误 [ 83%]

...eneUI {     private mat1: Laya.BlinnPhongMaterial;     private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();         this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scen...

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

125. 两个不同UI级别的物体如何进行碰撞检测? [ 83%]

...ayabox.com/question/1543 如果是转化为世界坐标,var rectangle1 = new Laya.Rectangle(负的世界坐标X,负的世界坐标Y, 52, 52) 可以这样写吗? 下面这个值应该如何计算 附件 : --> 2018-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

126. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 83%]

...function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var W...

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

127. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 82%]

...建一个js文件,放到index.html中。代码如下: var myWorker = new Worker("js/my_task.js"); myWorker.onmessage = function (oEvent) { console.log("Called back by the worker!\n"); }; myWorker.postMessage("start"); // start the worker. 新建一个my_task.js文件,放到js文件夹下,代...

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

128. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 82%]

...文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添加动画到舞台,播放动画 ```typescript //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); ```...

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

129. laya.ui.Tree_API3.0 [ 82%]

...d4'/></item></root>"; var domParser:* = new Browser.window.DOMParser();//创建一个DOMParser实例domParser。 var xml:* = domParser.parseFromString(xmlString, "text/xml");//解析xml字符。 var tree:Tree = new Tree();//创建一个 Tree 类的实例对象 tree...

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

130. 点击区域问题 [ 82%]

点击区域问题 var con1:laya.display.Sprite = new laya.display.Sprite; Laya.stage.addChild(con1); con1.x = con1.y = 100; var con:laya.display.Sprite = new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.di...

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