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

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

181. Laya3d 能使用类似u3d的Unlit/Texture这个shader么? [ 79%]

...运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 微信小游戏:HTMLDivElement的使用 LayaAirIDE下如何使用mask? 使用3D时候,Property 'getC...

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

182. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 79%]

...。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...

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

183. 物理引擎中更换刚体贴图的方法 [ 79%]

... density: 1, //弹力 restitution:0.4, container:this.ballBox, render: { sprite: { texture: "comp/basketball.png", xOffset: 34, yOffset: 34, } } }); 我想通过代码随时更改这个刚体上的texture贴图,this.ball.render.sprite.texture="comp/2.png"这个方法只能在游戏刚开始时执...

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

184. laya.display.FrameAnimation [ 79%]

...sspublic class FrameAnimationInheritanceFrameAnimation AnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 关键帧动画播放类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值...

来源: laya_api 发布时间: 20170929

185. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 79%]

...设置纹理之后,mouseThrough的设置就无效了,可以参考Laya.Sprite的mouseThrogh的注释,如下所示: /** * @en For non-UI component display object nodes (container objects or display objects without image resources), specifies whether the mouse events penetrate this object's col...

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

186. laya.ui.TipManager [ 78%]

...Packagelaya.uiClasspublic class TipManagerInheritanceTipManager Component Sprite Node EventDispatcher Object鼠标提示管理类Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透...

来源: laya_api 发布时间: 20170929

187. laya.ui.VBox [ 78%]

...ackagelaya.uiClasspublic class VBoxInheritanceVBox LayoutBox Box Component Sprite Node EventDispatcher Object VBox 是一个垂直布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 子对象对齐方式。LayoutB...

来源: laya_api 发布时间: 20170929

188. laya.ui.HBox [ 78%]

...ackagelaya.uiClasspublic class HBoxInheritanceHBox LayoutBox Box Component Sprite Node EventDispatcher Object HBox 是一个水平布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 子对象对齐方式。LayoutB...

来源: laya_api 发布时间: 20170929

189. 用viewport之后,为什么就不能使用Laya.Texture(用drawTexture画图片),然后用viewport显示区域 [ 78%]

...抠图透明区域为黑色,其它机型都是正常的。 如何设置Sprite的宽高和点击区域? matter中layasprite怎么改变图片大小? ios14系统下 blendMode='lighter' 图片异常 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的...

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

190. laya.ui.DialogManager [ 78%]

...nts Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,都会出发管理类的open和close事件 可以通...

来源: laya_api 发布时间: 20170929