大约有 1,536 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0063 秒)
...e(); // 设置容器为画布缓存 box.cacheAs = "bitmap"; this.layCanvas.addChild(box); // 绘制红色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个圆形区域,利用叠加模式,抠除上面红色区域 var circle = new Sp...
来源: Laya_社区 发布时间: 20170707
...统计信息 // Laya.Stat.show(); //添加3D场景 this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 3, 3)); this.camera.transform.r...
来源: Laya_社区 发布时间: 20180307
...hics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,500,400,"#000000",2); sprite2.graphics = graphics2; Laya.stage.addChild...
来源: Laya_社区 发布时间: 20190515
... Stat.show(); //给舞台添加laya3d场景 var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera:Camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); c...
来源: Laya_社区 发布时间: 20161223
...tion onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordItem; _list.repeatX = 1; _list.repeatY = 13; _list.spaceY = 3; _list.vScrollBarSkin = "";...
来源: Laya_社区 发布时间: 20170323
...odelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera:Camera = new Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //旋转摄像机角度 camera.transform.rotate(new Vector3(...
来源: Laya_社区 发布时间: 20190416
...var testView:TestView = new TestView(); Laya.stage.addChild(testView); fairygui.UIPackage.addPackage ( "res/Bag" ); Laya.stage.addChild ( fairygui.GRoot.inst.displayObject ); fairygui.GRoot.inst.addChil...
来源: Laya_社区 发布时间: 20180513
...; //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("...
来源: Laya_社区 发布时间: 20190426
...Laya.PrimitiveMesh.createQuad(1, 1); var model1: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(quda)) as Laya.MeshSprite3D; var model2: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(quda)) as Laya.MeshSprite3D; var model3: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3...
来源: Laya_社区 发布时间: 20190424
...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInput(); this.addChild(this.input); this.input.x = 50; this.input.text =...
来源: Laya_社区 发布时间: 20180312