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

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

1051. html文本(HTMLDivElement)的话 怎么斜体 [ 59%]

...话 怎么斜体   var scoreHtml = new HTMLDivElement(); scoreHtml.style.width = 72; scoreHtml.style.height = 50; scoreHtml.style.fontFamily = 'Arial'; scoreHtml.style.fontSize = 30; scoreHtml.style.color = '#3CFFBE'; scoreHtml.style.lineHeight = 30; scoreHtml.style.background = '#011f15'; scoreHtm...

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

1052. laya.display.AnimationPlayerBase [ 59%]

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

来源: laya_api 发布时间: 20170929

1053. 关于List的问题 [ 59%]

...片设置var , 但是我发现在List下设置var是无效的,this.as.width = null; 问题2: 一段文字中设置不同的字体和颜色,我能想到的就是富文本。 但是在List下的富文本好像有点问题,用数组赋予富文本文字无效,或是不显示。 求解 2018-...

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

1054. graphics怎么画透明色 [ 59%]

...(); graphics.save(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问题 ip...

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

1055. 如何重置游戏窗口大小?? [ 59%]

...辑里面改变这个大小,该如何实现? 通过 Laya.stage.designWidth = width ; Laya.stage.designHeight = height;设置之后不能立即生效 2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1...

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

1056. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 59%]

...据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.sc...

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

1057. iphoneX的圆形图片拉伸问题 [ 58%]

...背景图片做个大一点的。长一点的,UI 位置摆好,用fixed_width 比较好。 2018-08-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 黄奕 相关问题 【屏幕适配】在LayaAir上面是竖屏,为什么到微信...

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

1058. laya.ui.CheckBox [ 58%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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

1059. laya.ui.HSlider_API3.0 [ 58%]

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

1060. laya.ui.ScrollBar_API3.0 [ 58%]

...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...

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