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

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

2551. 分享:销毁龙骨动画! [ 45%]

...aya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); La...

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

2552. List 组件做的手风琴Demo [ 45%]

...   this.listArr[0].refresh()         }     /** * 创建BOX */ class Item extends Laya.Box{     public static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =n...

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

2553. 问下,3D模型导出有什么要求 [ 45%]

...liwenhua • 2017-03-19 18:00 呃呃,代码我用的这个 // 程序入口 class GameMain{ constructor() { //Laya.init(600,400); Laya3D.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; //创景场景 var scene:Laya.Scene = new Laya.Scene(); Laya.stage.addChild(scene); //创建摄像机 v...

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

2554. 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

2555. 版本号: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

2556. 微信开发者工具问题 [ 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

2557. 仿照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

2558. 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

2559. 2D方向光 · LayaAir3.4 · 引擎文档 · 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_文档 发布时间: 20251010

2560. 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