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

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

451. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 49%]

...         lineHeight: 40,                         backgroundColor: '#ff0000',                         color: '#ffffff',                         textAlign: 'center',                         fontSize: 16,                         borderRadi...

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

452. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 49%]

...fectiveProperty event getBool getBoolByIndex getBuffer getBufferByIndex getColor getColorByIndex getFloat getFloatByIndex getInt getIntByIndex getMatrix4x4 getMatrix4x4ByIndex getShaderData getShaderDataByIndex getShaderPropertyValue getTexture getTextureByIndex getVector2 getVector2ByIndex getVecto...

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

453. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 49%]

... is not defined. /LayaAirTest/src/LayaAirTest.as (20):warning:Laya.stage.bgColor This variable is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class LayaAirTest ...

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

454. 文字在框内滑动、滚动文本 [ 48%]

...his.txt.y=Laya.stage.height-this.txt.height>>1;     this.txt.borderColor="#ffff00";     this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX...

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

455. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 48%]

...提供HTML5开发技术方案!\n" ;this.txt.size(200,100);this.txt.borderColor = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt...

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

456. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 48%]

...xt:Text = new Text(); txt.text = "Hello, World!"; //设置文本颜色 txt.color = '#FF0000'; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5; //描边为5像素 txt.strokeColor = '#FFFFFF'; //设置为粗体 txt.bold = true; //设置文本的显...

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

457. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 48%]

...文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可...

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

458. laya.ui.TextInput_API3.0 [ 47%]

...a.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new T...

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

459. LayaAir3D基础数学工具(TypeScript-3D基础(TS)-LayaAir3D图形系统基础概念) [ 47%]

...为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** ​ 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地进行球面插...

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

460. LayaAir3D基础数学工具(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 47%]

...为颜色赋值: ```typescript //设置方向光的颜色 directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); ``` **四元数(Quaternion)** ​ 四元数在LayaAir中用于计算旋转。它们计算紧凑高效,不受万向节锁的困扰,并且可以很方便快速地进行球面插...

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