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

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

261. 舞台上有个label,我能通过截图保存成图片么 [ 63%]

...交 1 个回复 cuixueying 赞同来自: Laya.init(800, 800); Laya.stage.bgColor = "#eeffcc"; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#EEFF00"); var label:Label=new Label(); label.fontSize=60; label...

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

262. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...并减少重复的外观,每个实例可以具有不同的属性,如 Color 或 Scale。绘制调用,呈现多个实例出现在框架调试器绘制网格(实例)。 GPU Instance需要硬件的支持,确保你当前所使用的硬件可以支持GPU Instance渲染 上图展示了一个GPU Ins...

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

263. laya3d物体碰撞与触发检测的问题 [ 63%]

...ra.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0...

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

264. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 63%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载...

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

265. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 63%]

...// 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算...

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

266. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 63%]

...;             txt.text = "HelloLayaBox";             txt.color = "#ff0000";             txt.fontSize = 66;             txt.bold = true;                          txt.stroke = 5;//字体描边             txt.strokeColor = "#ffffff";    ...

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

267. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 63%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(new Laya.Vector3( -3.14 / 3, 0, 0)); })); ``` 查看加载后的效果(图1)。 ![](img/1.png)(图片1) #### 2. 材质加载 在单个材质进行加载...

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

268. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Bo...

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

269. 一个简单的跑酷曲面shader分享 [ 63%]

...tor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexM...

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

270. 官方技术文档中的问题 [ 63%]

...ra.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null;  //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0);  //添加自定...

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