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

大约有 243 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0065 秒)

181. 使用HtmlDivElement取不到实际大小 [ 79%]

...ml } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "<div>"; html += "<span color='#e3d26a'>使用</span>"; html += "<span style='color:#FFFFFF;font-weight:bold'>HTMLDivElement</...

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

182. ToolTip鼠标悬停的使用 [ 79%]

...例化 //简单的鼠标提示 var button:Button=new Button(); Laya.stage.addChild(button); button.label="button One"; button.pos(100,100); button.skin="comp/button.png"; button.toolTip="我是button One!"; //自定义鼠标提示 var button2:Button=new Button(); Laya.stage.addChild(button2); button...

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

183. graphics使用matrix的异常情况 [ 79%]

... ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

184. laya.ui.TextInput [ 79%]

...extInput(text:String) 创建一个新的 TextInput 类实例。 TextInput addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:A...

来源: laya_api 发布时间: 20170929

185. 没有人尝试使用3d物理引擎么 [ 79%]

...启统计信息 Stat.show(); //添加3D场景 var scene:Scene=Laya.stage.addChild(new Scene()) as Scene; //添加照相机 var camera:Camera=(scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 6)); camera.transform.rotate(new Vector3(-15, 0, 0), true, fa...

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

186. laya.d3.core.scene.Scene3D_API3.0 [ 79%]

...h x y zOrder _updateMark Methods _initialize _processActive _setCullCamera addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...

来源: Laya3.0_api 发布时间: 20231115

187. laya.display.Text [ 79%]

...ethods MethodDefined By  Text() 创建一个新的 Text 实例。 Text addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513

188. 使用webgl之后toDataUrl返回黑色的图像 [ 78%]

...k); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onClick():void { var htmlsss:String=(Laya.stage.getChildAt(0) as Sprite).drawToCanvas(100,100,0,0).getCanvas().toDataURL(); var sp2:Sprite = new Sprite(); sp2.name='drawCanvas'; sp2.x = 300; s...

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

189. laya.ui.List [ 78%]

... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  addItem(souce:Object):void 添...

来源: laya_api 发布时间: 20170929

190. laya.display.Animation [ 78%]

...efined By  Animation() 创建一个新的 Animation 实例。 Animation addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addLabel(label:String, index:int)...

来源: laya_api 发布时间: 20170929