大约有 850 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(460) Laya3.0_api(77) laya_api(70) Laya2.0_api(64) Laya3.0_文档(53) Laya2.0_文档(50) Laya2.0_示例(39) Laya_示例(37)
...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
... 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
...reUrl); ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 ape.size(texture.width, texture.height); } })(); ``` 代码运行效果如图7-2所示。  (动图7-2)
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...以手动输入常用的字体,还可以是位图字体 字体大小 fontSize 文本字体大小,例如: 50,直接填写正整数 单字符渲染 singleCharRender 以字符为单位将文本缓存到共享的贴图中,相同样式字体字号的字符全局共享一份缓存,默认为fal...
来源: Laya3.0_文档 发布时间: 20251010
...值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性...
来源: Laya2.0_api 发布时间: 20190513
... 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
...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
... 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