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

大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0057 秒)

2531. List翻页效果 [ 45%]

..."../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 Laya.Handler(thi...

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

2532. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 45%]

...; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprit...

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

2533. 微信开发者工具问题 [ 45%]

...AGame.js:14 Wechat Lib:2.0.8, 2018.5.17 17:08:32 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} VM698:1 gameThirdScriptError Unexpected token in JSON at position 134;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 134     at JSON.p...

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

2534. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 45%]

...?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性...

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

2535. List滚动条问题 [ 45%]

...ice = function(price) { this._goldButton.label = "RMB " + price; }; } Laya.class(MarketItem, "xgame.marketitem", _super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; /...

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

2536. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...现一个简单的昼夜更替效果。 示例代码如下: const { regClass } = Laya; @regClass() export class DayNight extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.DirectionLight2D; private dayTime: number = 0; private dayDuration: number = 24; // 一个完整周期...

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

2537. laya.physics.RigidBody [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RigidBodyProperties | Methods Packagelaya.physicsClasspublic class RigidBodyInheritanceRigidBody Component Object 2D刚体,显示对象通过RigidBody和物理世界进行绑定,保持物理和显示对象之间的...

来源: Laya2.0_api 发布时间: 20190513

2538. 颜色滤镜 差值变化 [ 44%]

.../ module touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.Col...

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

2539. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 44%]

...:48 浏览: 1266 关注: 5 人 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat =...

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

2540. List翻页效果怎么实现 [ 44%]

..."../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 Laya.Handler(thi...

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