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

大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0076 秒)

3681. laya.ui.ColorPicker [ 48%]

...果可以当作图片源,再次绘制到其他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

3682. laya.ui.Label_API3.0 [ 47%]

...置画布的背景颜色。 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

3683. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 47%]

...      对象高度      *      * 示例用法:      * 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

3684. Laya3d加载Arena/Arena.ls报错 [ 47%]

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

3685. 多场景跳转遇到当前场景不能remove的问题 [ 47%]

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

3686. laya.ui.Image_API3.0 [ 47%]

...置画布的背景颜色。 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

3687. 构建3d示例的Android工程,生成nativie的,导入android Studio中运行,报错 [ 47%]

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

3688. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 47%]

...成功,获取到code")                 }                 var button = wx.createUserInfoButton(                 {                     type: 'text',                     text: '点击进入游戏',                     style:                ...

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

3689. laya3d导入模型动画,添加光照之后,模型全黑。 [ 47%]

...局光的情况下去增加点光源去布光应该就好了 //方向光 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

3690. laya.d3.core.scene.QuadtreeNode [ 47%]

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