大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...置画布的背景颜色。 onInit(); } private function onInit():void { var label:Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 label.leading = 4;//设置 label 的行间距...
来源: Laya3.0_api 发布时间: 20231115
... 对象高度 * * 示例用法: * var div:HTMLDivElement=new HTMLDivElement(); * div.innerHTML = "<link type='text/css' href='html/test.css'/><a href='alink'>a</a><div style='width:130px;height:50px;color:#ff0000'>div</div&g...
来源: Laya_社区 发布时间: 20190227
...FAULT_HEIGHT, false); //添加3D场景 var scene:LayaScene = LayaScene.load("res/scene/Arena/Arena.ls"); Laya.stage.addChild(scene); // Log.Info("Procedure::setup"); // this.InitGameManager(); } 201...
来源: Laya_社区 发布时间: 20170802
...neSelectroommultiple; Laya.class(StartgameUI, "StartgameUI", startgameUI); var sceneStartgame = new StartgameUI(); window.sceneStartgame= sceneStartgame; Laya.stage.addChild(sceneStartgame); 5个场景,4个跳转,前2个正常,后2个不正常,一样的代码。 因为remove跟add不在同...
来源: Laya_社区 发布时间: 20180815
...置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,用于控制 bg 对象的显示位置。 bg.y = 100;//设置 ...
来源: Laya3.0_api 发布时间: 20231115
...误:LayaAir3D.max.js:13425:TypeError:Cannot read property 'match'of null var tmp=str.match(ShaderCompile3D.INCLUDE) 我怎么才能在android studio中使用LayaPlayer加速器?如你们构建出的android的nativie的代码中 mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this); ...
来源: Laya_社区 发布时间: 20170906
...成功,获取到code") } var button = wx.createUserInfoButton( { type: 'text', text: '点击进入游戏', style: ...
来源: Laya_社区 发布时间: 20180911
...局光的情况下去增加点光源去布光应该就好了 //方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); directionLight.direction = new Vector3(0, -1.0, -1.0); 如果还是达不到你想要的...
来源: Laya_社区 发布时间: 20180410
...bject:RenderObject):voidQuadtreeNodeProperty Detail_childrenpropertypublic var _children:Vector.<QuadtreeNode>exactBoxproperty exactBox:BoundBox Implementation public function get exactBox():BoundBox public function set exactBox(value:BoundBox):voidexactInfiniteBoxproperty exa...
来源: laya_api 发布时间: 20170304