大约有 1,204 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0280 秒)
Laya_社区(630) Laya3.0_api(207) Laya2.0_文档(119) Laya_示例(59) Laya3.0_文档(58) laya_api(46) Laya2.0_api(44) Laya2.0_示例(41)
...a.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例。"; te...
来源: Laya3.0_api 发布时间: 20231115
...width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; txt.color = "ff00ff"; //使用我们注册的字体 txt.font = mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static funct...
来源: Laya2.0_文档 发布时间: 20201114
...='expires' content='0' /> <meta name='laya' logoimg='logo.png' logobkcolor='#ffffff' screenorientation='landscape' cacheid='fffffffff' /> </head> <body style='margin:0;overflow:none;overflow-x:hidden;overflow-y:hidden;background-color: #000;'> <script type="text/javascript" s...
来源: Laya_社区 发布时间: 20180310
...t_Times:从随机帧开始。 下面来介绍一下Tile Data中的属性 Color Modulate:控制瓦片的颜色。 Texture_origin:纹理中心位置。当瓦片添加到场景中时,瓦片的中心会一直处于瓦片块的中心,但其纹理的位置可以改变。 可以看到,纹理的...
来源: Laya3.0_文档 发布时间: 20251010
...age.addChild(skeleton); text = new Text(); Laya.stage.addChild(text); text.color = "#00ff00"; text.fontSize = 30; Laya.stage.addChild(text); Laya.stage.on(Event.MOUSE_DOWN, this, changeAction); } private var tActionID:int=0; private function changeAction():void { tActionID++; var aniCount:int; //获...
来源: Laya2.0_文档 发布时间: 20210715
...型资源大小。 `Ignore Vertices UV ` 忽略UV贴图 `Ignore Vertices Color` 忽略顶点颜色信息 `Ignore Vertices Normal` 忽略法线 `Ignore Vertices Tangent` 忽略切线信息 `Compress` 模型压缩 ##### (5) Terrain Setting unity地型导出设置 `Convert Terrain To Mesh ` 如果场...
来源: Laya2.0_文档 发布时间: 20200620
...Bounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这...
来源: laya_api 发布时间: 20170929
...型资源大小。 `Ignore Vertices UV ` 忽略UV贴图 `Ignore Vertices Color` 忽略顶点颜色信息 `Ignore Vertices Normal` 忽略法线 `Ignore Vertices Tangent` 忽略切线信息 `Compress` 模型压缩 ##### (5) Terrain Setting unity地型导出设置 `Convert Terrain To Mesh ` 如果场...
来源: Laya2.0_文档 发布时间: 20200620
... this.newScene.addChild(directionLight); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0))...
来源: Laya_社区 发布时间: 20201120
...dL2/?nodeId=206962&env=production&source=ios&memId=2470906&color=65d1a7&hide_next_btn=0&language=chinese&autoPlay=1 使用Safiri浏览器打开这个链接,无法正常显示游戏内容,仔细看发现,游戏内容显示在顶部,宽度为屏幕宽,高度大概...
来源: Laya_社区 发布时间: 20210923