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

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

151. 屏幕适配-缩放-Show All [ 91%]

...prite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); ...

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

152. 屏幕适配-缩放-Extract Fit [ 91%]

...te; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite();...

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

153. 文本-滚动文本 [ 91%]

...wser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

154. 问一下这个问题要怎么改啊? [ 90%]

...re; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this,...

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

155. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 90%]

...  希望有所了解的给指点一下 多谢 class MultiTouch{     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){         Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎      ...

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

156. 其他引擎的Demo-Example_04 [ 90%]

... (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number = Browser.width; private h:number = Browser.height; private slideX:number = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.creat...

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

157. UI-ComboBox [ 90%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "../../res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.st...

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

158. 文本-位图字体 [ 90%]

... = Laya.Handler; import WebGL = Laya.WebGL; export class Text_BitmapFont { private fontName: string = "diyFont"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

159. 经验分享:如何控制龙骨动画的播放索引! [ 90%]

...port laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(800,600,WebGL); index=15; mFactory=new Templet(); mFactory.on(Even...

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

160. UI-ProgressBar [ 90%]

...r = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = St...

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