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

大约有 1,377 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)

351. 输入设备-地图 [ 86%]

...语言、LayaAirIDE让项目开发更高效。let map, marker, mapDiv, infoText; class InputDevice_Map { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Geolocation = Laya.Geolocation; // 不支持WebGL时自动切换至...

来源: Laya2.0_示例 发布时间: 20240930

352. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 86%]

...图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite = ; // 回收池 private static fontPool: Laya....

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

353. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 86%]

# textInput的单行输入&多行输入 文本输入框是我们游戏中经常会用到的一个UI组件,任何时候我们需要输入的时候都要使用到textInput这个类,我们先看一下TextInput这个类的API。 Laya.ui.textInput中所有的API参数: ![image.png](http://ldc.layab...

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

354. 水平滚动条组件 · LayaAir3.0文档 · LAYABOX [ 86%]

...下述示例演示了如何通过代码创建HScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置HScrollBar,创建出符合自己需要的HScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_HScrollBar ...

来源: Laya3.0_文档 发布时间: 20230911

355. 垂直滚动条组件 · LayaAir3.0文档 · LAYABOX [ 86%]

...下述示例演示了如何通过代码创建VScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置VScrollBar,创建出符合自己需要的VScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_VScrollBar ...

来源: Laya3.0_文档 发布时间: 20230911

356. 文本-单行输入 [ 86%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_InputSingleline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

来源: Laya2.0_示例 发布时间: 20240930

357. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 86%]

...p;& (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._ski...

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

358. 发布时js文件的引用及压缩问题 [ 86%]

...? <!--封装了html动态排版功能-->     <script type="text/javascript" src="libs/laya.html.js"></script>     <!--粒子类库-->     <script type="text/javascript" src="libs/laya.particle.js"></script>     <!--提供tileMap解析支持--> ...

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

359. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 86%]

...添加了脚本。同时在舞台上添加另一个方便显示输出的`Text`文本。 脚本类: ```typescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的tou...

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

360. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 86%]

...添加了脚本。同时在舞台上添加另一个方便显示输出的`Text`文本。 脚本类: ```typescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的tou...

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