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

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

611. UI-Input [ 64%]

...xtInput; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

612. UI-Input [ 64%]

...ipt三种开发语言、LayaAirIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持Web...

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

613. 加载-销毁Texture使用的图片资源 [ 64%]

...; this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; thi...

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

614. js进度,进度,js场景进度效果 [ 64%]

... - 由于进度太快无法看到一个虚假的效果 Laya.timer.once(i * 100, this, function() { this.Progress.schedule.value = num; this.Progress.percentage.text = (num * 100).toFixed() + '%'; if (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, function() {//...

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

615. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 63%]

...ner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自己 other._owner.removeSelf(); return; } } else { var move1 = new Laya.Vector3(0.02, 0, 0); var move2 = new Laya.Vector3(-0.02, 0, 0); Laya.timer.once(...

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

616. 微信小游戏wxmin图片加载有点问题 [ 63%]

...) //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLigh...

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

617. laya.ui.TextArea [ 63%]

...和Flash机制不同 Sprite maxChars : int 字符数量限制,默认为10000。 设置字符数量限制时,小于等于0的值将会限制字符数量为10000。 TextInput  maxScrollX : int[read-only] 水平滚动最大值TextArea  maxScrollY : int[read-only] 垂直滚动最大值TextArea...

来源: Laya2.0_api 发布时间: 20190513

618. 3D粒子特效初始化卡顿 [ 63%]

...么会跳帧。 u3d的粒子系统为什么要导成lh的文件,如果有100个粒子我是不是要导出100百遍 请问下粒子编辑器在哪? 粒子在时间上的表现,h5版和app版中的表现不一致 问题状态 最新活动: 2018-05-31 22:18 浏览: 2174 关注: 3 人 malagebi ...

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

619. laya.display.Scene [ 63%]

...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也...

来源: Laya2.0_api 发布时间: 20190513

620. 动画-新版骨骼动画 [ 63%]

...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = ne...

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