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

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

611. UI-Label [ 82%]

...rokeColor) { const Label = Laya.Label; const STROKE_WIDTH = 4; var label = new Label(); Laya.stage.addChild(label); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; }...

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

612. CommandBuffer · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...指令给CommandBuffer 添加代码接口如下: var buf:CommandBuffer = new CommandBuffer();buf.setRenderTarget(renderTexture);buf.drawRender(renders[i],materials[i],0); 2.需要将CBuffer绑定到Camera的渲染事件中,目前laya支持的Camera事件如下: BeforeForwardOpaque = 0,//在渲...

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

613. list里面可以加入多个view吗? [ 82%]

...is,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage.height-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"...

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

614. 3D模型无法用Tween类吗 [ 82%]

...ya.Sprite3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,{x:0,y:-1,z:-3},5000,La...

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

615. 圆不跟谁 sprite 一起缩放? [ 82%]

...]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootSp = new Laya.Sprite();  this.firstSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 10...

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

616. 缓动-时间线 [ 82%]

...meLine = Laya.TimeLine; var WebGL = Laya.WebGL; var target; var timeLine = new TimeLine(); (function () { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; ...

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

617. 滤镜GlowFilter [ 82%]

滤镜GlowFilter image.filters = [new GlowFilter("#ff0000",4,4,4)];给图片添加滤镜不好用? 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 滤镜除了颜色colorFilte...

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

618. contact.getHitInfo [ 82%]

...nt方法 contact.getHitInfo = function (): any {     var manifold: any = new this.box2d.b2WorldManifold();    ... } 这里的this不是Physics类的当前对象,this.box2d undefined 附件 : --> 2020-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

619. ???????? 为啥加一个 Text,drawcall 暴增? [ 82%]

...????? 为啥加一个 Text,drawcall 暴增? fish.scoreItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/icon_00313.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.s...

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

620. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 82%]

...了各自的ui.xxxUI   2.新建了个场景添加到B页面 this.scene = new Laya.Scene(); this.addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya...

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