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

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

451. List组件拖动浏览时item会出现重叠的现象 [ 76%]

...lBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data: Array<string> = []; for (var i: number = 0; i < 2; ++i) { data.push("img_common_pinzhi0.png"); data.push("img_common_pinzhi1.png"); data.push("img_...

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

452. 关于Laya.loader.load和getRes的问题 [ 76%]

...var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却不能显示图片:var t:Texture = Laya.loader.getRes("../../../../res/...

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

453. drawcall优化问题 [ 76%]

...is, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var role2 = new Laya.Sprite(); x = x+0.1; y ...

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

454. 文本-下划线 [ 76%]

...ineColor, x, y) { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt); txt.text = "Layabox\n是HTML5引擎技术提供商\n与优秀的游戏发行商\n面向AS/JS/TS开发者提供HTML5开发技术方案"; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; txt.align = a...

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

455. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 76%]

... //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } }TypeError: node._setParent is not a function preload.js:55     at Image.__proto.addChild (file:///E:/laya/myLaya/myZootopia/bin/libs/laya.core.js:20925:9)     at LoveControl.createLoveArr (file:///E:...

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

456. 鼠标交互-滑动 [ 76%]

... / 2; this.button.on(Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.addChild(this.button); //左侧临界点设为圆形初始位置 beginPosition = this.button.x; //右侧临界点设置 endPosition = beginPosition + TrackLength; } drawTrack() { Laya.stage.graphics.drawLine( beginPosition, L...

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

457. 1.5版本:3D Camera无法使用? [ 76%]

...接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 ...

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

458. 滤镜-发光滤镜 [ 76%]

...e.width) / 2; ape.y = (Laya.stage.height - texture.height) / 2; Laya.stage.addChild(ape); } function applayFilter() { //创建一个发光滤镜 var glowFilter = new GlowFilter("#ffff00", 10, 0, 0); //设置滤镜集合为发光滤镜 ape.filters = [glowFilter]; } })();module laya { import Sprite = ...

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

459. 新版本场景加载问题 [ 76%]

...,会报错  var scene=Laya.Scene.load("3333.ls"); var root=Laya.stage.addChild(scene);       var camera = root.addChild(new Laya.Camera(0, 0.2,200));     之前版本可以直接加载,用最新的版本之后 会报  laya.d3.js:114 Uncaught Error: AnimationClipParser01:unknown property ...

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

460. hitTestPrior无效 [ 76%]

...wn); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img);   然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问是不是hitTestPrior无效? 2017-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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