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

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

411. 添加UI后,带光照的场景为什么变暗? [ 63%]

UI相关问题 添加UI后,带光照的场景为什么变暗? Stage中添加了一个Scene和一个Sprite,后者用于挂载ui编辑导出的view.MainView。现在遇到的问题是:不显示UI时,场景中的光照正常;但叠了这层UI后,场景就变暗了。UI层需要进行什...

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

412. 骨骼动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 63%]

...entional/LayaMonkey.ls",Handler.create(this,function(s:Scene3D):void{ Laya.stage.addChild(s); })); ``` ![](img/6.gif)(图6)

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

413. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 63%]

....Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.cr...

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

414. 微信小游戏 ios下 帧率设置为slow时,会闪黑屏 [ 62%]

...的ts2D示例项目,仅在GameUI.ts的构造函数里加了一句 Laya.stage.frameRate = Laya.Stage.FRAME_SLOW   并且为了观察黑屏明显一些在TestScene.scene里加了一张黄色底图   iphone5和iphone7S 的微信环境上100%闪黑屏 附件 : --> test.zip 2018-10-16 添加评论 ...

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

415. laya.ui.ScaleBox_API3.0 [ 62%]

...ox 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Hierarchy Box ScaleBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx ...

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

416. laya.display.Text_API3.0 [ 62%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例...

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

417. laya.media.VideoNode_API3.0 [ 62%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

418. laya.ui.UIComponent_API3.0 [ 62%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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

419. 更新2.12版本后 射线出问题了 同一个位置使用web和移动模式点击触发的坐标点不一样 [ 62%]

... 赞同来自: Laya_小小泽 使用物理分辨率的,适配模式会对stage等比缩放。2d转3d接口在计算时使用的是渲染分辨率。你使用的2d点信息是没有计算缩放前的点,也就是设计分辨率下的2d点,两个参考系不一样,最后计算出来的3d点有...

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

420. 在场景中增加方向光,仅在slow下会出现报错 [ 62%]

在场景中增加方向光,仅在slow下会出现报错 Laya.stage.frameRate = "slow"下,在场景中增加方向光,进行directionLight.direction = new Laya.Vector3(-0.2, -1,-0.45);设置的时候,会概率性的出现报错,如图示:注释掉directionLight.direction 的改变或者...

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