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

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

201. 3D模型加载帧动画的问题 [ 72%]

...nction onModelOK(){//添加3D场景var scene = new Laya.Scene();Laya.stage.addChild(scene);//创建摄像机(纵横比,近距裁剪,远距裁剪)var camera = new Laya.Camera(0,0.1,1000);//加载到场景scene.addChild(camera);//旋转摄像机角度camera.transform.rotate(new Laya.Vector3(-2...

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

202. laya.display.Sprite [ 72%]

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

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

203. laya.ui.TextArea_API3.0 [ 72%]

...宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 Laya.loader.load(["resource/ui...

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

204. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 72%]

...边颜色 label.strokeColor = strokeColor; } //加载到舞台 Laya.stage.addChild(label); return label; } } } ```

来源: Laya2.0_文档 发布时间: 20210714

205. Text 居中 搭配 Tween 显示结果有问题。 [ 72%]

... txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,不改变位置,结果发现缓动把位置...

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

206. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 72%]

...lor = "#ffffff"; letter.font = "Impact"; letter.fontSize = 180; Laya.stage.addChild(letter); return letter; } ``` 代码运行时,由于update回调是每一帧都在执行,所以在缓动的过程中,有一种闪光字的效果。如动图8所示。 ![动图8](img/8.gif) (动图8)

来源: Laya2.0_文档 发布时间: 20210715

207. 分享:Graphics下cmds命令流的使用! [ 72%]

...3.png') as Texture; //绘制纹理 var box:Sprite=new Sprite(); Laya.stage.addChild(box); box.graphics.drawTexture(texture1,50,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture2,200,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture3,350,50,0,0,new Matrix(),0.5); box.graphics.drawTe...

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

208. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 72%]

....graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRec...

来源: Laya2.0_文档 发布时间: 20210715

209. laya.device.media.Video [ 72%]

...ethods MethodDefined By  Video(width:int = 320, height:int = 240)Video addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  canPlayType(type:int):String ...

来源: laya_api 发布时间: 20170929

210. laya.ui.CheckBox [ 72%]

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

来源: laya_api 发布时间: 20170929