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

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

31. 物体随着鼠标滑动旋转脚本 [ 98%]

...旋转脚本 function ObjectRotate() {          ObjectRotate.super(this);//这里不太清楚作用       //最终鼠标在X轴上的值     this.lastMouseX = NaN;           //最终鼠标在Y轴上的值                  this.lastMouseY = NaN;                ...

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

32. 2.0版本可用的CameraMoveScript.ts [ 98%]

.../     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) < 1.50) {             Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ);             this.tempRotationZ.c...

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

33. 骨骼动画-Spine事件 [ 98%]

... Laya.stage.bgColor = "#ffffff"; mLabelSprite = new Sprite(); Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(E...

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

34. 关于环形进度条,进度不能重置问题 [ 98%]

...复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bit...

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

35. Laya 绑定显示内容到骨骼动画 [ 98%]

...Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frame...

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

36. 计时器-延迟执行 [ 98%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; let vGap = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage....

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

37. 区块地图-滚动地图 [ 98%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); Stat.show(); } // 创建地图 createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectang...

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

38. 这种进度条怎么实现? [ 98%]

... Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE...

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

39. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 98%]

...     Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         this.upVector3 = new Laya.Vector3(0, 1, 0);         //预加载所有资源         let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(...

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

40. 加载.lh文件 运行后黑屏 无法显示 [ 98%]

...ctor3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector3(0, 1, 0);         Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         Laya.Stat.show();     //var res...

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