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

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

291. laya.device.media.Video [ 49%]

...| Events Packagelaya.device.mediaClasspublic class VideoInheritanceVideo Sprite Node EventDispatcher Object Video将视频显示到Canvas上。Video可能不会在所有浏览器有效。 关于Video支持的所有事件参见:http://www.w3school.com.cn/tags/html_ref_audio_video_dom.asp。 注意...

来源: laya_api 发布时间: 20170929

292. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...加装饰器暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. 平移变换 平移变换的定义如下: /** * 平移变换。 * @param t...

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

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

...," + '' + '' + '' + '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

294. laya.html.dom.HTMLIframeElement_API3.0 [ 48%]

... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...

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

295. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 48%]

...目标物体添加上描边 */     public AddCommandBuffet_Outline(sprite3D : Laya.Sprite3D): void{         if((sprite3D as Laya.MeshSprite3D) == null || !this.isUseOuline){            // console.log('spreite3D node meshSprite3D is null');           ...

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

296. 微信小游戏渲染开放域卡顿处理 [ 48%]

...码请勿使用该类      */     export class WXBitmap extends Laya.Sprite {         private $viewName: string;         private $texture: Laya.Texture;         private $bitmap: any;         private $timer: lie.Timer;         public auto: boolean = true;    // 仅在未加...

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

297. laya.html.dom.HTMLDivElement_API3.0 [ 48%]

...vElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha ble...

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

298. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 48%]

...被折叠 要回复问题请先登录 发起人 qq282196521 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? ...

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

299. laya.display.Sprite_API3.0 [ 48%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移...

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

300. laya.physics.PhysicsDebugDraw_API3.0 [ 48%]

...用PhysicsDebugDraw.enable()开启,或者通过IDE设置打开 Hierarchy Sprite PhysicsDebugDraw Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierar...

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