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

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

231. []LayaTree v1.0.5版本更新(2021.11.17) [ 44%]

...的便利了镜头调整. 加入了正交相机开关orthographic. 3.操作Sprite节点,除了常规节点的位移,旋转和缩放.还能够动态设置层级关系zOrder,锚点,尺寸 此外还有开发中经常需要用到的设置点击事件与穿透控制 4.操作文本节点,文本内容直...

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

232. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 44%]

...," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } new LayaUISample; ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadIma...

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

233. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 43%]

...言来创建项目。代码如下: ```java package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' +...

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

234. 2.0 beta3 物理 DestroyJoint 报错 [ 42%]

...程语言   创建了两个Scene 在第一个场景里面添加了两个Sprite 并且在IDE中分别对其添加上RigidBody   然后用Laya.Scene.open("XXX.scene");进行场景跳转  没有问题   但是如果在第一个场景里面的一个物体添加了任意Joint 把Joint设置正确 链...

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

235. laya.ui.DialogManager_API3.0 [ 41%]

...过设置对话框的zOrder属性,可以更改弹出的层次 Hierarchy Sprite DialogManager Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize closeEffectHandler hitTestPrior lockLayer maskLayer mouseThrough name popupEffectHandler tag drawtocanvCtx Ac...

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

236. laya.display.AnimationBase_API3.0 [ 40%]

...接实例化此类,因为有些方法需要由子类实现。 Hierarchy Sprite AnimationBase FrameAnimation Animation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_RE...

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

237. laya.display.FrameAnimation_API3.0 [ 40%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

238. laya.display.EffectAnimation_API3.0 [ 40%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

239. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 40%]

...'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有...

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

240. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 39%]

...Text = Laya.Text;     import Image = Laya.Image;     import Sprite = Laya.Sprite;       export class SmartScale_T {           //适配模式         private modes:string = "exactfit";         //全局文本信息         private txt: Text...

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