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

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

511. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 52%]

...();              spr.json=obj;             var car:Sprite = Pool.getItemByCreateFun("Car", this.spr.create, this.spr);                          Laya.stage.addChild(bar);             bar.pos(Browser.clientWidth/2,Browser.clientHeight/2);  ...

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

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

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

513. laya.display.Text_API3.0 [ 52%]

...aya.stage.addChild(text);//将 text 添加到显示列表。 } } Hierarchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROL...

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

514. 微信小游戏中iPhoneX的适配问题 [ 52%]

...景往上挪动一下? 测试下 kezhiyu • 2018-06-04 14:33 能否用sprite做下测试。像这样 var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Han...

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

515. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage....

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

516. laya.ui.HScrollBar_API3.0 [ 52%]

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

517. laya.ui.VScrollBar_API3.0 [ 52%]

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

518. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 52%]

...ysinline", true); // 设置画布上的对齐参照物 let reference: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElm...

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

519. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 52%]

...下面是processTimer类 package uiLogic.core {     import laya.display.Sprite;     import laya.maths.Size;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         pu...

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

520. laya.ui.ComboBox_API3.0 [ 52%]

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