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

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

141. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 75%]

...中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始...

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

142. 播放视频只有声音没有图像 [ 75%]

...台有又看见video这个元素有 let SoundManager = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("aud...

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

143. laya.resource.TextResource_API3.0 [ 75%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/TextResource" TextResource Class TextResource 文字资源 Hierarchy Resource TextResource Index Constructors constructor Properties _id data destroyedImmediately format lock name url uuid...

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

144. API里 Tab控件的的内容为什么看不到的 [ 75%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 官方的API为什么找不到pivot和pos? 使用设计界面编辑好一个小控件,怎么在代码里复制一份一样的? 编辑器:切换到编辑模式没有内容 input能否根据文本内容自...

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

145. List翻页效果 [ 75%]

...onfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new L...

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

146. 屏幕适配-屏幕适配 [ 75%]

... Event = Laya.Event; import Image = Laya.Image; import WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes: Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 private index: number = 0; //全局文本...

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

147. 陀螺仪和加速计使用问题 [ 75%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined 问题状态 最新活动: 2020-01-15 19:25 浏览: 2411 关注: 7 人

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

148. laya.components.AnimatorController2D_API3.0 [ 75%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorController2D" AnimatorController2D Class AnimatorController2D 2D动画控制器 Hierarchy Resource AnimatorController2D Index Constructors constructor Properties _id destroyedImm...

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

149. layaair2-cmd无法编译 [ 74%]

...throw er; // Unhandled 'error' event       ^ SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' exit:1   但是我是新创建的代码,一行代码都没改动 附件 : --> myLaya2.zip 2019-09-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

150. List翻页效果怎么实现 [ 74%]

...onfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new L...

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