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

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

331. 2D节点使用3D · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...属性面板中,会显示属性信息,如图2-2所示。 (图2-2) Width:渲染纹理的像素宽度。 Height:渲染纹理的像素高度。 Color Format:渲染纹理的颜色格式。 Depth Format:渲染纹理的深度格式。 Generate Mipmap:如果勾选了,则自动生成多...

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

332. 关于适配noborder模式(个人适配分享及建议) [ 72%]

...我自己谢了一个方法来实现 如下 AppConfig.viewRect = {};var divWidth = window.innerWidth; var divHeight = window.innerHeight; var devicePixelRatio = Laya.Browser.pixelRatio; var divH = divHeight * devicePixelRatio; var divW = divWidth * devicePixelRatio; var desH = Laya.stage.height; var...

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

333. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 72%]

...幕宽高`375*667`。LayaAir引擎可以通过laya.utils.Browser.clientWidth和laya.utils.Browser.clientHeight来获取屏幕的宽与高。 **6、物理宽高:** ​ 关于设备屏幕的物理宽高,我们需要先了解像素密度的概念。在PC电脑上,通常一个像素位置上就...

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

334. laya.display.Input_API3.0 [ 72%]

...ordChar drawtocanvCtx isAppUseNewInput langPacks Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bold borderColor cacheAs color components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filt...

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

335. laya.ani.bone.Skeleton [ 72%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

336. laya.ui.RadioGroup_API3.0 [ 72%]

...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...

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

337. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 72%]

...awCanvas 的一个bug drawCanvas(canvas: HTMLCanvas, x: number, y: number, width: number, height: number): void { if (!canvas) return; var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length+...

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

338. Panel控件滑动区域不正常的问题 [ 72%]

...nt; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的“setContentSize”和“changeScroll”方法的最后一行添加  this.setContent...

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

339. 使用laya官方示例代码制作微信小游戏无法显示 [ 72%]

...vate createLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = stro...

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

340. laya.ui.HSlider_API3.0 [ 72%]

...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...

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