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

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

131. 一篇了解所有的LayaAir文本组件(TypeScript-LayaAir基础篇(TS)-文本) [ 42%]

...么选择呢。 其中Text是最基础的文本组件,他直接继承于Sprite,而Label继承于UIComponent再往上才是Sprite,从原理上,路径越短,性能自然越好。所以,比较简单的文本,当Text可以满足时,原则上优先使用Text,而Label由于属性非常...

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

132. laya.display.Input [ 41%]

...Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框,由于不同浏览器的差异,会导致此对象的默认文本的位置与用户...

来源: laya_api 发布时间: 20170929

133. 遮罩层宽高为0显示异常 [ 41%]

...50的时候显示范围缩小,变成0的时候去没有隐藏   RenderSprite的源码_maskNative和_mask方法里只判断了宽高大于0的情况,小于等于0的时候却没清空原来绘制的图像 附件 : --> 2023-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

134. 新的2.2.0升级须知,对比原来的版本API导出漏掉了好多丫,有图! [ 41%]

...知,必看!!!不按提问规则的,官方拒绝解答!!! sprite旋转以后,但是原来碰撞检测rect没有旋转 unity导出粒子文件问题 LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) 关于微信7.0.3版本之后的版本,微信...

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

135. 【简单跑酷--JS版】---Lv.6 终篇 [ 40%]

... Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.l...

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

136. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 38%]

...," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadIma...

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

137. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...

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

138. 【LIST无法拖动】参照官方实例做的 [ 38%]

...w Laya.GlowFilter("#08f6e3", 7, 0, 0);         (this as Laya.Sprite).filters = [glowFilter];     } 2021-01-23 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 麻烦提交可以运行的demo case,你提交的例子现在是报错,你可以提交简单的demo case工程,...

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

139. laya.ui.ScrollBar_API3.0 [ 37%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

140. laya.ui.HScrollBar_API3.0 [ 37%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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