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

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

271. 计时器-间隔循环 [ 90%]

...teFrameRateBasedText.rotation += 1; } } new Timer_Interval();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Text; constructo...

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

272. 鼠标交互-双指旋转(多点触控) [ 90%]

... Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0;...

来源: Laya_示例 发布时间: 20240930

273. 分享:List相关(Item增删功能) [ 90%]

...乱了)------参考onRemoveClick回调   大致代码如下:package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample {...

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

274. 加载TiledMap 不显示 [ 90%]

加载TiledMap 不显示 import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export...

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

275. 鼠标交互-滑动 [ 90%]

...= endPosition; Tween.to(button, { x: targetX }, 100); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 priv...

来源: Laya_示例 发布时间: 20240930

276. Animation的createFrames为何加载不了有的图集资源 [ 90%]

Animation的createFrames为何加载不了有的图集资源 package { import laya.ani.AnimationState; import laya.display.Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始...

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

277. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 90%]

ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found 环境win10 layaboxide 2.6.0 beta 已经全局安装typescript,命令行 tsc -v,输出Version 3.8.3 nodejs 12.16.1 编译报错: semantic error TS2354: [31mThis syntax requires an imported he...

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

278. UI-List [ 90%]

...ndex: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img =...

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

279. 如何监听移动端软键盘的弹出和收回? [ 90%]

...前软键盘的弹出和收回状态。   参考代码如下:package { import flash.display.Sprite; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.FocusEvent; import flash.events.KeyboardEvent; import flash.text.TextField; import flash.text.TextFieldType; imp...

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

280. UI-List [ 90%]

...ndex: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img =...

来源: Laya_示例 发布时间: 20240930