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

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

431. 调用创建微信授权按钮时,授权按钮有时候显示有时候不显示 [ 51%]

...  lineHeight: 98*0.45,                     backgroundColor: '#ff0000',                     color: '#ffffff',                     textAlign: 'center',                     fontSize: 16,                  ...

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

432. 技术文档svg不可以使用 [ 51%]

...-js-3-4-1   //初始化引擎Laya.init(600, 400, Laya.WebGL);Laya.stage.bgColor = "#ffcccc";var data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml"...

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

433. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 51%]

...; (selectSprite3D.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorRed; if(this.oldSelectMesh) if(selectSprite3D!=this.oldSelectMesh) (this.oldSelectMesh.meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = this.colorWrite; this.oldSelectMesh = selectSprite3D; /...

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

434. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 51%]

...le: { left: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, borderRadius: 4 } }) 这种利用微信接口创建的按钮对象赋值给button 的怎么弄 __JS__('wx').createUserInfoButton({}) 可以这样写 前...

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

435. laya.resource.RenderTexture2D_API3.0 [ 51%]

...et depthStencilTexture destroyedImmediately lock name url uuid DEBUG _clearColor _clearLinearColor defuv flipyuv Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture depthStencilFormat destroyed dimension filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory heig...

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

436. 加载到舞台的3D模型不显示贴图 [ 51%]

...hader/files/PixelSimpleTextureSkinnedMesh.ps中void main方法中的gl_FragColor=texColor*v_Color改为gl_FragColor=texColor,即可忽略制作模型中设置的顶点色! 谢谢使用,如有问题,随时反馈!附最终效果图。   2016-10-21 3 1 分享 微博 QZONE 微信 cuixueying ...

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

437. laya.utils.PerfHUD [ 50%]

...Intance(comp:Component):* 添加组件实例。 Node  addDataDef(id:int, color:int, name:String, scale:Number):voidPerfHUD addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延...

来源: Laya2.0_api 发布时间: 20190513

438. 2.0字体比较小的时候,某些字显示不全 [ 50%]

...n LayaSample() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; txt.align = "center"; txt.fontSize = 15; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.leading = 5;...

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

439. ui组件list数据源的疑问 [ 50%]

...dex   要多个属性赋值的话可以写arr.push({label: {text:"item"+i,color:"#FF0000"},clip: i % 9}); 2017-05-03 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 tanglijiong 相关问题 List滑动条会引起单元格上的按钮点...

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

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

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