大约有 342 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0041 秒)
Laya_社区(96) Laya3.0_api(59) Laya2.0_api(57) laya_api(53) Laya2.0_文档(47) Laya2.0_示例(20) Laya_示例(8) Laya3.0_文档(2)
...= "#232628"; setup(); })(); function setup() { createParagraph(); // 代码创建 showExternalHTML(); // 使用外部定义的html } function createParagraph() { var p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; var html = "使用"; html += "HTMLDi...
来源: Laya_示例 发布时间: 20250221
...nit)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); // // 创建显示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHANGE, ...
来源: Laya2.0_示例 发布时间: 20250221
...or = "#232628"; this.setup(); } setup() { this.createParagraph(); // 代码创建 this.showExternalHTML(); // 使用外部定义的html } createParagraph() { const HTMLDivElement = Laya.HTMLDivElement; let p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = ...
来源: Laya2.0_示例 发布时间: 20250221
...ad(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本 createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange)...
来源: Laya_示例 发布时间: 20250221
...D init error ,must support webGL LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 问题状态 最新活动: 2018-05-31 11:08 浏览: 1456 关注: 2 人
来源: Laya_社区 发布时间: 20180530
...色滤镜,需要先设置一个颜色矩阵,然后用ColorFilter方法创建一个颜色滤镜实例,如下面的代码所示: ```java //颜色矩阵,红色 var colorMatrix = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1, 0, //A ]; //创建颜色滤镜 var redFilter...
来源: Laya2.0_文档 发布时间: 20210714
...色滤镜,需要先设置一个颜色矩阵,然后用ColorFilter方法创建一个颜色滤镜实例,如下面的代码所示: ```typescript //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1, 0, //A ]; //创建红色颜...
来源: Laya2.0_文档 发布时间: 20210715
...lip呢? 请问下加载TFF字体要怎么加载呢? 请问layaide如何创建一个复合的Button 问题状态 最新活动: 2017-01-03 09:37 浏览: 3740 关注: 3 人 muannce • 2017-01-03 11:38 谢谢!
来源: Laya_社区 发布时间: 20170102
...N, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 tiledMap.createMap("../../res/tiledMap/desert.json", new Rectangle(0, ...
来源: Laya_示例 发布时间: 20250221
...色滤镜,需要先设置一个颜色矩阵,然后用ColorFilter方法创建一个颜色滤镜实例,如下面的代码所示: ```java //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,红色 var redMat:Array = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0,...
来源: Laya2.0_文档 发布时间: 20210715