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

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

1011. 关于laya生成的canvas定位问题导致内部事件不正确 [ 44%]

...: 10% auto 0;background: #ccc;position: relative;} .msgDiv{font-size: 30px;color: #fff;text-align: center;padding-top: 30px;} </style> </head> <body> <div class="layaDiv"></div> <div class="msgDiv">日志</div> </body> <script src="https://cdn.bootc...

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

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

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

1013. discard property,please use transform's property instead [ 44%]

...ht = scene.addChild(new Laya.DirectionLight());         directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6);         directionLight.direction = new Laya.Vector3(0, -1.0, -1.0);         //灯光开启阴影         directionLight.shadow = true;         //可见阴影距离   ...

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

1014. Cannot read property 'rayCast' of undefined [ 43%]

...ode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = null; this.scene = new Laya.Scene3D(); this.camera = new Laya.Camera(0, 0.1, 100); Laya.stage.addChild(this.scene); this.scene.addChild(this.camera); this.camera.transform.translate(new Laya.Vector3(0, 3.5, 1)); this....

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

1015. laya.html.dom.HTMLDivElement [ 43%]

... 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水...

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

1016. 【简单跑酷--JS版】---Lv.6 终篇 [ 43%]

....addChild(this.player); //分数 this.scoreTxt = new Text(); this.scoreTxt.color = "#ffffff"; this.scoreTxt.fontSize = 30; this.scoreTxt.text = "0"; this.scoreTxt.width = Config.GameWidth; this.scoreTxt.align = "right"; this.scoreTxt.x = -10; this.scoreTxt.y = 10; this.addChild(this.scoreTxt); //监...

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

1017. laya.ui.Label [ 43%]

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

来源: laya_api 发布时间: 20170929

1018. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 43%]

...center"; //水平居中 然后 html.innerHTML = "<span style='color: #cfd4ff;font-size: 30px'>感叹号</span>"; 显示的结果是这句话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面...

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

1019. 【分享】[UI组件专题] Label 与 Button (附:九宫格,九妹图) [ 43%]

...适的位置,在右侧<属性>面板中的<常用>标签中color设置为#3341e8,fontSize属性的值设为36,align选择为center,调整Lebel的宽高,width为 150,height为60(读者也可以自行修改面板数值或在画布中用鼠标拉伸调整)在<其他>...

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

1020. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...机在渲染时,都会先将颜色和深度信息存储起来,也就是ColorBuffer与DepthBuffer,然后下一帧直接读取缓冲区中颜色和深度信息,而不是实时计算的。当使用多个摄像机时,由于每一个摄像机都将自己的颜色和深度信息存储在缓冲...

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