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

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

351. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 45%]

... private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; /...

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

352. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 44%]

...ng"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChi...

来源: Laya2.0_文档 发布时间: 20210715

353. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 44%]

...skin = "../../../../res/ui/hscroll.png"; //设置宽度 hScrollBar.width = 400; //设置位置 hScrollBar.pos(150, 170); //最低滚动位置数字 hScrollBar.min = 0; //最高滚动位置数字 hScrollBar.max = 100; //滚动变化事件回调 hScrollBar.changeHandler = new Handler(this, onChange); ...

来源: Laya2.0_文档 发布时间: 20210714

354. LayaAir下TTF字体的使用方式? [ 44%]

...gl.WebGL; public class TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos...

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

355. 2D物理-仿生机器人 [ 44%]

..._Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); La...

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

356. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...ollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handl...

来源: Laya2.0_文档 发布时间: 20210714

357. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 44%]

... = Laya.WebGL; var Pool     = Laya.Pool;   var mAniPath; var mStartX = 400; var mStartY = 500; var mFactory; var mActionIndex = 0; var mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; St...

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

358. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 44%]

...ollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handl...

来源: Laya2.0_文档 发布时间: 20210715

359. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 44%]

...unction parseComplete(){ skeleton = templet.buildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphi...

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

360. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 44%]

...var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar.png",type:Loader.IMAGE}; var proArr:Array=; proArr.push(pro1,pro2); Laya.loader.lo...

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