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

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

211. List数据源的格式问题导致无法响应List的SelectHandler [ 64%]

...oVO(); skillInfoVO.Name = "数据源" + i; skillInfoVO.Lv = i; skillInfoVO.Color = 1; temp.push(skillInfoVO); } list.array = temp;2、SkillInfoVO的相关代码public class SkillInfoVO extends Data { public var Lv:int; public var Name:String; public var Color:int; }3、Data的相关代码public clas...

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

212. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 64%]

...       this.label.fontSize = 15;             this.label.color = "#7CFC00";             this.label.pos(500, 400);               this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000";        ...

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

213. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 64%]

...t = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Vector3(1, -1, 0)); //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as ...

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

214. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的第二次碰撞到碰撞结束前,每帧都在触发调...

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

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

...交 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

216. 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

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

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

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

218. 缓动动画(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

219. 资源加载(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

220. 资源加载(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