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

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

311. Mesh网格-网格加载 [ 70%]

...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //加载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/A...

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

312. 自定义格式模型创建&渲染问题 [ 69%]

...中用到了自定义格式的模型文件 .... if(this.m_spModelData.HasColor()) { VerElement[Index] = new Laya.VertexElement(Stride, Laya.VertexElementFormat.Color, Laya.VertexElementUsage.COLOR0); Stride += 16; Index += 1; } var VertDecal = new Laya.VertexDeclaration(Stride, VerElement); NewMesh....

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

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

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

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

314. 文本-Overflow [ 69%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Text = Laya.Text; let t1 = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); ...

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

315. 性能测试-卡通人物2 [ 69%]

...prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = ...

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

316. Panel中添加图片无法显示,文本可以 [ 69%]

...= new laya.ui.Label();     label.text = "fsadfsdfsdfsdfsdf";     label.color = "#ff0000";     label.fontSize = 40;     label.y = 50;     var label2 = new laya.ui.Label();     label2.text = "fsadfsdfsdfsdfsdf";     label2.color = "#0000ff";     label2.fontSize = 40;     label2.y = 1...

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

317. 电脑的谷歌浏览器移动端HTMLDivElement图文混排会报错 [ 69%]

...png" border="0" width="47" height="20" /></span> <span style='color:#dbd4bb;font-size:undefined'><font color='#e9a118'>简单雅洁:</font><font>***</font></span>" 电脑的谷歌浏览器移动端 附件 : --> 2020-07-15 1 条评论 免费帖 --> 分...

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

318. laya.filters.GlowFilter_API3.0 [ 69%]

... Constructors constructor Methods getBlurInfo1Native getBlurInfo2Native getColorNative _filter Constructors constructor new GlowFilter(color: string, blur?: number, offX?: number, offY?: number): GlowFilter Overrides Filter.constructor Defined in laya/filters/GlowFilter.ts:24 创建发光滤镜 Para...

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

319. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 69%]

...fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl[i],'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;...

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

320. [LayaAir3]2D着色器 [ 69%]

...一个,用graphics绘制一个红色的圆,在着色器下,写上if(color.r>0.98)color.a=0.0; 可能出现的问题是,第一在添加graphics后,直接给出警告,图片消失,第二种情况,例如A是黑色矩形,B是红色圆,圆完全在A的区域内,设置着色器,...

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