大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0070 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...收阴影和模型产生阴影: ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(La...
来源: Laya2.0_文档 发布时间: 20210715
...onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - ...
来源: Laya3.0_文档 发布时间: 20230303
...roll); g_uiScroll.addEventText("hhhhhhhhhhhhhhhhhhhhhhhhhhhhh"); var view = new NpcLayer(); view.pos(0,217); Laya.stage.addChild(view); } function onAssetLoaded(params) { g_uiScroll = new UIScroll(610.0, 250); g_uiScroll.pos(0, 0); Laya.stage.addChild(g_uiScroll); g_uiScroll.addEventText(&...
来源: Laya_社区 发布时间: 20171122
...重新加载创建。 DataTexture2DProperty DetailsimLodInfopropertypublic var simLodInfo:Float32ArraysimLodRectproperty public static var simLodRect:Uint32Arraysrcproperty src:String [read-only] 获取文件路径全名。 Implementation public function get src():StringConstructor Deta...
来源: laya_api 发布时间: 20170929
...求解决方案 Laya_Aaron • 2018-08-06 16:09 webglcharimage.as 里面 var sFont:String = "normal 100" + nFontSize +"px Arial"; 改为 var sFont:String = "normal 100 " + font; ggg333 • 2018-08-06 16:39 依然会出问题,然而我没办法给你demo,小demo出...
来源: Laya_社区 发布时间: 20180803
... public function loading100() { var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox2"; //设置文本颜色为白色,默认颜色为黑色 txt.color ...
来源: Laya_社区 发布时间: 20170725
...initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Browser.getElementById("layaCanvas") // canvas.appendChild(videoElement) videoElement = B...
来源: Laya_社区 发布时间: 20180313
...r • 2018-05-24 16:29 转是能转,但是角度无法限制, 我先用var v3=sphere.transform.localRotationEuler;然后先把北极转到朝向观众,然后我让球自动沿Y轴旋转,转的过程中北极始终是朝向观众的,这时输出v3.x值是在变化的,也就是说随着Y...
来源: Laya_社区 发布时间: 20180523
...收阴影和模型产生阴影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D =...
来源: Laya2.0_文档 发布时间: 20210715
... this.aniFighter.loop = false; //获取动画边界信息,设置锚点 var rectBounds:Rectangle = this.aniFighter.getGraphicBounds(); var rectBounds1:Rectangle = this.aniFighter.getBounds(); //QUESTION=[无法获取图片宽度高度] this.aniFighter.pivot(512/2,304/2);//rectBounds.width/2,rectBou...
来源: Laya_社区 发布时间: 20181023