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

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

131. 官方LayaAir之灯光一节示例背景在微信里表现一致 [ 82%]

...启统计信息 Laya.Stat.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //创建摄像机(纵横比,近距裁剪,远距裁剪) var camera:Laya.Camera = new Laya.Camera(0,0.1,100); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform...

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

132. 照着官方文档写的 Dialog 报错? [ 82%]

....prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadD...

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

133. VR的demo有没有加载3D场景的啊,实在知怎么加 [ 81%]

...= Laya.Stage.SCREEN_HORIZONTAL; Laya.Stat.show(); //var scene = Laya.stage.addChild(new Laya.Scene.load("cj02/LastHopeScene.ls")); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.VRCamera( 0.03,0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0.3,...

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

134. 续飞机大战 [ 81%]

...,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载...

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

135. Dialog.popup(true)无法以模式窗口显示 [ 81%]

...是dialog吗,看你的代码好像使用错了dialog用自己在单独addChild到某个显示对象身上,这块你还需要在查下具体问题 2018-04-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 luoluqi 相关问题 2.0...

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

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

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

137. Sprite optimizeScrollRect = true 似乎有问题 [ 81%]

...(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initContent = function () { this.content = new Box(); this.content.width = this.width; this.content.autoSize = true; this.content.y = this.scrollMode == DOWN_TO_TOP ? this.height : 1; this.mask.add...

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

138. HTML文本 · LayaAir3.0文档 · LAYABOX [ 81%]

...yaBox</span><span>欢迎你的加入</span>"; Laya.stage.addChild(div); 运行效果: 3.2 同一个文本中设置字体、颜色同 示例如下: var htmlD:HTMLDivElement = new HTMLDivElement(); Laya.stage.addChild(htmlD); htmlD.innerHTML = "<font style='fontSize:30' col...

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

139. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 81%]

.../001.png'; var label=new  Laya.label(); label.text=' I am a  Label!' box.addChild(image); box.addChild(label); Laya.stage.addChild(box); 2017-04-21 1 3 分享 微博 QZONE 微信 zhang92tong 赞同来自: 太感谢老师了! 2017-04-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

140. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 81%]

...age.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.autoPlay = true; counter.interval = 1000; counter.x = (Laya.stage.width - counter.width) / 2 - 35; counter.y = (Laya.stage.height ...

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