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

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

401. UI-ColorPicker [ 78%]

...Handler = new Handler(this, this.onChangeColor, [colorPicker]); Laya.stage.addChild(colorPicker); this.onChangeColor(colorPicker); } onChangeColor(colorPicker) { console.log(colorPicker.selectedColor); } } new UI_ColorPicker();module laya { import Stage = Laya.Stage; import ColorPicker = Laya.ColorP...

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

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

...wordWrap = true; text.valign = "middle"; text.align = "center"; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切...

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

403. 滤镜-模糊滤镜 [ 77%]

...- ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(ape); } function applayFilter(ape) { var blurFilter = new BlurFilter(); blurFilter.strength = 5; ape.filters = [blurFilter]; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.St...

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

404. Sprite-旋转缩放 [ 77%]

...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; Laya.timer.frameLoop(1, this, animate); } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleVal...

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

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

...wordWrap = true; text.valign = "middle"; text.align = "center"; Laya.stage.addChild(text); } } new Timer_CallLater();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持...

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

406. 3D模型无法正显示和播放动作 [ 77%]

...是我导出问题,还是使用问题           var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh"));          var ani = hero.addComponent(Laya.SkinAnimations);         ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani")...

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

407. Laya3D,支持的IOS版本最低是多少? [ 77%]

....screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.5, 1)); camera.transform.rotate(new Vector3( -15, 0, 0), true, false); var mc:...

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

408. 如何设置组建的位置 [ 77%]

...个UI A.UI  750X1344 B.UI  750X200 想让B在A底部显示 Laya.stage.addChild(AView) Laya.stage.addChild(BView) 如何控制代码,来保证B一直显示在底部   谢谢 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

409. 3D场景加载2D按钮 [ 77%]

...景加载2D按钮 3D场景中无法加载2D的UI吗?我使用laya.stage.addchild没有效果,使用scene.addchild报错,应该如何写呢? 2018-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aa...

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

410. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 77%]

...Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img);             //this.addChild(this.text); } public setImg(src: string): void { this.img.skin = src;             } }  /* class Main {     constructor() {         wx.onMess...

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