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

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

161. ambientColor无效 [ 68%]

ambientColor无效 material = new StandardMaterial(); material.diffuseTexture = Texture2D.load("res/earth.png"); material.ambientColor=new Vector(2,2,2); sphere.meshRender.material = material; 我照教程里设置了环境颜色 material.ambientColor=new Vector(2,2,2); 但是无效,模型并没...

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

162. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 68%]

...private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png",...

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

163. 如何改变text部分字的颜色或两个不同颜色的text如何拼接看起来像一个文本? [ 68%]

...r htmlDiv:HTMLDivElement=new HTMLDivElement(); htmlDiv.innerHTML='<span color="#FF0000">哈哈哈</span><span color="#FFFF00">嘻嘻嘻</span>'; Laya.stage.addChild(htmlDiv); 2017-05-05 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

164. Layabox web 复制一段文字到剪贴板 [ 67%]

...:260px; margin-left:-200px;margin-top:-150px; visibility:hidden;background-color:#fff;z-index:100;border:1px solid grey;overflow: hidden;} .MyContent{position:fixed;left:50%;top:50%;} .MyBtn{width:100%;height:18%;background-color:white;} #confirm{position:fixed;left:49%;top:53%;font-size:30px;color:...

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

165. 动画-旧版骨骼动画 [ 67%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/old/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zom...

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

166. UI-Input [ 67%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资...

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

167. UI-Input [ 67%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); skins = ["res/ui/input (1).png", "res/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() {...

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

168. 3d点光源究竟有无衰减参数设置的? [ 67%]

... var pointLight = scene.addChild(new Laya.PointLight()); pointLight.ambientColor = new Laya.Vector3(0.8, 0.8, 0.8); pointLight.specularColor = new Laya.Vector3(2.0, 2.0, 0.9); pointLight.diffuseColor = new Laya.Vector3(1, 1, 1); pointLight.transform.translate(new Laya.Vector3(0, 30, 0)); pointLight....

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

169. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 67%]

... extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*0.5; private var endTime:int; private var c...

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

170. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...字体需要频繁修改,可以勾选此项以提升性能 文本颜色color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 样式 style “B”(bold)是否为粗体,“I”(italic)是否为斜体,“U”是否有下划...

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