大约有 1,254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
Laya_社区(850) Laya2.0_文档(116) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya3.0_文档(54) Laya2.0_示例(8) Laya_示例(6)
...启统计信息 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
....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
...= 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
...,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
...是dialog吗,看你的代码好像使用错了dialog不用自己在单独addChild到某个显示对象身上,这块你还需要在查下具体问题 2018-04-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 luoluqi 相关问题 2.0...
来源: Laya_社区 发布时间: 20180407
...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
...(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
...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
.../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
...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