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

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

181. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 68%]

...p; (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); r...

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

182. laya.display.Input [ 68%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这...

来源: laya_api 发布时间: 20170929

183. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 68%]

...div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#000000"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/ChatFace/face'+i+'.png" style="width:28px;height:28px;"></img>'); } div.pos(30,5); div.innerHTM...

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

184. laya.d3.core.scene.Scene3D_API3.0 [ 67%]

...rs GIRotate _isHeightSet _isWidthSet active activeInHierarchy alpha ambientColor ambientIntensity ambientMode ambientSH anchorX anchorY blendMode cacheAs components cullInfoCamera cullPass customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize enableFog filters fog...

来源: Laya3.0_api 发布时间: 20231115

185. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 67%]

...字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水...

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

186. 屏幕方向:自动横屏与自动竖屏的设置详解(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 67%]

...t:Laya.Label = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水...

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

187. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 67%]

....addChild(skeleton); text=new Laya.Text(); Laya.stage.addChild(text); text.color="#00ff00"; text.fontSize=30; Laya.stage.addChild(text); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,changeAction); } var tActionID; function changeAction() { tActionID++; var aniCount; //获取动画动作数量 aniCount=s...

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

188. Arial Black字体能显示,为啥游戏里在firefox 里字体显示成了Times New Roman了 [ 67%]

...</title> <style type="text/css"> .p1{font-family:"Arial bold"; color: #583823;font-size: 25px} .p2{font-family:"Times New Roman";color: #583823;font-size: 25px} .p3{font-family:"Arial Black";color: #583823;font-size: 25px} .p4{font-family:"Arial";color: #583823;font-size: 25px} </styl...

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

189. Sprite图片显示不了 [ 67%]

...    Laya.stage.scaleMode = "showall";             Laya.stage.bgColor = "#336699";             showApe();         }         private function showApe():void {             var t:Text = new Text();             t.text = "asdfasd";             t....

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

190. 如何在3d场景中添加文字 [ 67%]

...Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"; this.txtName.bold = true; this.txtName.align = "left"; Laya.stage.addChild(this.txtName); //设置其他玩家...

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