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

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

641. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 38%]

...ResultCall, allowedCcdPenetration); var count = bt.tBtCollisionObjectArray_size(collisionObjects); if (count > 0) { this._collisionsUtils.recoverAllHitResultsPool(); for (var i = 0; i < count; i++) { var hitResult = this._collisionsUtils.getHitResult(); out.push(hitResult); hitResult.succeeded...

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

642. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 38%]

... static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.img.skin = src; } } } new laya.UI_List(); ```

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

643. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 38%]

...reUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })(); ``` 代码运行效果如图7-2所示。 ![动图7-2](img/7-2.gif) (动图7-2)

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

644. laya.resource.TextureCube_API3.0 [ 38%]

...PixelsData destroyUnusedResources Constructors constructor new TextureCube(size: number, format: TextureFormat, mipmap?: boolean, sRGB?: boolean, premultiplyAlpha?: boolean): TextureCube Overrides BaseTexture.constructor Defined in laya/resource/TextureCube.ts:85 Parameters size: number format: Text...

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

645. laya.html.dom.HTMLIframeElement_API3.0 [ 37%]

...rs constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawC...

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

646. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...以手动输入常用的字体,还可以是位图字体 字体大小 fontSize 文本字体大小,例如: 50,直接填写正整数 单字符渲染 singleCharRender 以字符为单位将文本缓存到共享的贴图中,相同样式字体字号的字符全局共享一份缓存,默认为fal...

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

647. laya.device.media.Video [ 37%]

...值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性...

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

648. 【LIST无法拖动】参照官方实例做的 [ 37%]

...    let paihangbang = new Text();         paihangbang.fontSize = 30;         paihangbang.text = "已获得关卡";         paihangbang.x = (list.width - paihangbang.fontSize * 3) / 2;         console.info(list.x + "---"+list.y + "---"+paihangba...

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

649. laya.ui.AdvImage_API3.0 [ 37%]

...rs constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight dis...

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

650. getimagedata直接调用无法获取有效像素问题 [ 37%]

... RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0); var info=Browser.context.getImageData(0,0,width,height); } return info.data; }上面是 getpixels 的实现, ...

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