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

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

441. laya.ui.Tree_API3.0 [ 49%]

...结构数据。 example package { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", ...

来源: Laya3.0_api 发布时间: 20231115

442. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 49%]

....Sprite; import laya.events.Event; import laya.ui.Image; import laya.utils.Browser; public class TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,100,50,"#FF0000"); sp.size(100,50); // 设置轴...

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

443. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 48%]

... private function onLink(data:*):void { // TODO Auto Generated method stub Browser.window.location.href=data; }5、实现html页面跳转 示例如下: var iHtml:HTMLIframeElement=new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="res/html/test.html";6、简单的图片显示 示例...

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

444. 3D中摄像机绕物体旋转该如何实现? [ 48%]

...ya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = this.LerpV...

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

445. 官方案例里摄像机绕物体旋转脚本的问题 [ 48%]

...ya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = this.LerpV...

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

446. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 47%]

...渲染,代码如下: //创建一个url对象; var url:string = Laya.Browser.window.URL.createObjectURL(imgBlob); //加载URL获得HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A...

来源: Laya3.0_文档 发布时间: 20230303

447. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 47%]

....drawTexture(texture2, 0, 0); //把草垛居底部显示 // this.grass.y = Browser.clientHeight - this.grass.height; this.addChild(this.grass); //创建一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop =...

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

448. JS进度条加载问题 [ 47%]

...2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Load...

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

449. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 47%]

...尽的讯息。   Laya Engine : 1.17.19.1beta 作业系统: macOS 10.12.6 Browser : chrome 67.0.3396.99   没有什么复杂的程式码,只是让物件一直旋转。有将mask拿掉测试,发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; construct...

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

450. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...ackage { import laya.display.Stage; import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居...

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