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

大约有 199 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0041 秒)

71. Tween.to 执行失败 [ 74%]

...tch(dir){ case "up": hero_p1.roleAni.play(0,true,"p1_walk_up"); Laya.stage.addChild(hero_p1.roleAni); break ; case "down": hero_p1.roleAni.play(0,true,"p1_walk_down"); Laya.stage.addChild(hero_p1.roleAni); break ; case "left": hero_p1.roleAni.play(0,true,"p1_walk_left"); Laya.stage.addChild(hero_p1....

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

72. 绘制矩形与圆角矩形(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 74%]

...         sp = new Sprite();             Laya.stage.addChild(sp);             //画矩形             sp.graphics.drawRect(20, 20, 100, 50, "#ffff00");                        }     } } ``` 代码运行效果: ​ ![图片...

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

73. 怎么实时获取相机的xyz [ 73%]

...的链接 提交 2 个回复 wudi199553 赞同来自: var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(5, -10, 500)); 2017-12-18 0 1 分享 微博 QZONE 微信 wudi199553 赞同来自: https://ask.layabox.com/question/7565 2017-12-19 0 0 分享 ...

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

74. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 73%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);            //画矩形             this.sp.graphics.drawRect(20, 20, 100, 50, "#ffff00");         }     } } new laya.Sprite_DrawShapes(); ``` 代码运行效果: ​...

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

75. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 73%]

...tTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Sprite); UIDropBox.prototype = { getTextFeild: function () { var text = new Text(); text.overflow = Text...

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

76. 怎么获取手机相册内容 [ 73%]

...oaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alp...

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

77. 打包后启动游戏后报错 [ 73%]

...raphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.setAlpha(1); addChild(s); var img:Image = new Image("a.png"); s.addChild(img); //方案二: var s:Sprite = new Sprite(); s.graphics.alpha(0.3); s.graphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.alpha(1); addChild(...

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

78. 如何做一个心形的进度条? [ 72%]

...818760256 赞同来自: var view = new testUI(); view.pos(0,0); Laya.stage.addChild(view); view.fbar.y = 24;//这里设置没效果。。 Test.zip 2017-11-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 158187...

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

79. laya.sprite 不接受click事件 [ 72%]

...firstSprite= new Laya.Sprite(); this._firstSprite.pos(100,150); Laya.stage.addChild(this._firstSprite); this._firstSprite.loadImage('../laya/assets/image/0.jpg'); //this._firstSprite.scale(0.3,0.3); this._firstSprite.size(200,200); //this._firstSprite.pivotX = 0;//设置 sprite 对象的水平方法...

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

80. 微信浏览器,input输入完成后,游戏不能还原 [ 72%]

...drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word..."; ...

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