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

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

2431. 后处理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...引擎中景深模糊的效果,可以看到开启后处理效果后场景背景变模糊了。 未开启后处理时的效果 图1-1 开启后处理后的效果 图1-2 二、添加后处理效果 2.1在场景中添加 在层级面板中选中相机节点,此时在属性设置面板中就能看...

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

2432. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 34%]

...nction Main() { //初始化舞台 Laya.init(1334,750,WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(100,50); //发光滤镜 creteGlowFilter(); //阴影滤镜 createShadeFilter(); } /**创建发光滤镜位图**/ private function creteGlowFilter():void { //...

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

2433. laya.ui.Box [ 33%]

...。设置为true,对性能有一定影响。 Sprite  bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs...

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

2434. laya.display.Input [ 33%]

...e,对性能有一定影响。 Sprite  bgColor : String[override] 文本背景颜色,以字符串表示。 Input blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这意味着不使用粗...

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

2435. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 33%]

...type; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor(); this.addChild(this.mapFloor); //玩家 this.player = new Player(); this.player.x = 32 * 8; this.player.y = 32 * 4; this.addCh...

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

2436. 解决跨域相关! [ 33%]

...只要路径是正确的就可以。 发现 第一次打开chrome有黄色背景色的“--disable-web-security”相关的提示,说明浏览器设置跨域成功。 再次用执行上面的命令行时,不会再有相关提示了,但是还是能跨域的! 2018-10-25 0 0 分享 微博 QZONE...

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

2437. [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返回值的时候崩溃 [ 33%]

... 微博 QZONE 微信 nothing 赞同来自: 把 官方教程里面的 设置背景颜色方法 像这样 给一个 返回值,就重现bug 崩溃了.. +(NSString *)bgColor:(NSString*)color {          NSString *str = @"hahahahahaha";     NSDictionary *dict = @ {         @"code" : @(1),    ...

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

2438. laya.ui.Button_API3.0 [ 33%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resour...

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

2439. laya.ui.CheckBox_API3.0 [ 33%]

...置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("r...

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

2440. laya.ui.ProgressBar_API3.0 [ 33%]

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

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