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

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

71. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 79%]

... 代码如下   htmlDiv.width = 300; htmlDiv.height = 100; htmlDiv.style.colorcolor; htmlDiv.style.leading = leading; htmlDiv.style.align = "center"; htmlDiv.innerHTML = "确定要退出副本吗?"; 附件 : --> 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

72. UI-TextArea [ 79%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize...

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

73. 文本-自动换行 [ 79%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text; var txt = new Text(); Laya.stage.addChild(txt); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发...

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

74. 文本-多行输入 [ 78%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); // 移动端输入提示符 inputText.prompt = "Type some word..."; //多行输入 inputText.multiline = true; inputText.wordWrap =...

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

75. UI-Tree [ 78%]

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

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

76. UI-Tree [ 78%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); let res = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tre...

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

77. Sprite optimizeScrollRect = true 似乎有问题 [ 78%]

...s, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text = _content; txt.cacheAs = 'bitmap'; txt.fontSize = _fontSize; txt.bold = true; txt.font = 'wordFont'; txt.color = _color; txt.strokeColor = '#000000';...

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

78. 计时器-延迟调用 [ 78%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered...

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

79. 高级应用-Laya3D与网页混合 [ 78%]

...ode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = "none"; var scene = Laya.stage.addChild(new Laya.Scene()) ; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(...

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

80. 材质-BlinnPhong材质加载 [ 78%]

...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/Assets/LayaMonke...

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