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

大约有 843 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0093 秒)

211. 微信小游戏截屏分享 [ 78%]

...Path, title: string }) } });   注意:sp 可以是Laya.image 或者laya.sprite 2018-05-18 2 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ₩ 相关问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) 关于微信...

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

212. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 78%]

...ic title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canvasWrapText({c...

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

213. 关于video [ 78%]

...bGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, function(){ // 创建Video元素 var videoElement = Laya.Browser.cre...

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

214. laya.ui.ViewStack_API3.0 [ 78%]

...: 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

215. laya.ui.UIComponent [ 78%]

... Events Packagelaya.uiClasspublic class UIComponentInheritanceUIComponent Sprite Node EventDispatcher ObjectSubclasses Box, Button, Clip, ColorPicker, ComboBox, Image, Label, ProgressBar, ScrollBar, Slider, TipManager, WXOpenDataViewer Component 是ui控件类的基类。 生命周期:preinitiali...

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

216. laya.ui.VBox_API3.0 [ 78%]

...Children?: boolean): VBox Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns VBox Properties Optional _extra _extra: INodeExtra Inherited from ...

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

217. laya.ui.HBox_API3.0 [ 78%]

...Children?: boolean): HBox Inherited from UIComponent.constructor Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns HBox Properties Optional _extra _extra: INodeExtra Inherited from ...

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

218. 其他引擎的Demo-Example_21 [ 78%]

...Laya.stage.on('mouseup', this, this.onMouseUp); } createCanvases() { const Sprite = Laya.Sprite; let graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); let liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphicsCanvas); liveGraphics = liveGraphicsCanvas.graphics; canvasG...

来源: Laya2.0_示例 发布时间: 20240930

219. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 78%]

...滤镜 var redFilter = new Laya.ColorFilter(colorMatrix) ``` 最后通过Spriter的filters属性将颜色滤镜效果叠加到位图中。下面我们创建一个Main.js类,编写代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.Co...

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

220. loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 [ 78%]

loadImage加载资源的同时指定x,y和sprite对象指定x,y相同的值为什么结果不同 var ape = new Sprite(); ape.loadImage("../bin/res/images/2.png",(Laya.stage.width)/2,(Laya.stage.height)/2);   效果和 ape.x=(Laya.stage.width)/2; ape.y=(Laya.stage.height)/2;不同这是为什么?...

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