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

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

721. laya.d3.core.scene.VRScene [ 65%]

...lean是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node enableDepthFog : BooleanBaseScene enableFog : Boolean 获取是否允许雾化。 BaseScene enableLight : Boolean = true 是否启用灯光。BaseScene...

来源: laya_api 发布时间: 20170422

722. native下旋转tween卡顿 [ 65%]

...码如下 var ape = new Laya.Sprite(); ape.loadImage("res/star.png"); Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡...

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

723. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 65%]

...kin = src; // } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.st...

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

724. laya.ui.HScrollBar_API3.0 [ 65%]

...rollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoad...

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

725. laya.ui.VScrollBar_API3.0 [ 65%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...

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

726. as hello world 背景还是黑色 [ 65%]

...ublic function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffffff"; var sp : Label = new Label("hello world"); //sp.fontSize = 55; sp.pos(100, 100) ; //sp.color = "#000000"; Laya.stage.addChild(sp); } } } chrome 下查看源代码 <html> <head> <meta ...

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

727. 关于新手引导 [ 65%]

... new Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interacti...

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

728. 如何根据内容计算 Label的高度 [ 65%]

...的内容 input能否根据文本内容自动调整宽高? Ray 在不同stage缩放下,表现不同,计算有会非常大的误差 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 怎么计算两个点...

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

729. 物理Bodies绑定Laya.Sprite [ 65%]

...画布,使用 WebGL 渲染,不支持时会自动切换为 Canvas Laya.stage.alignV = 'top'; // 适配垂直对齐方式 Laya.stage.alignH = 'middle'; // 适配水平对齐方式 Laya.stage.screenMode = this.Stage.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; //...

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

730. laya.ui.HSlider_API3.0 [ 64%]

...HSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete...

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