大约有 976 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0074 秒)
Laya_社区(598) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...alignV = "middle"; const spine: Laya.Skeleton = new Laya.Skeleton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html <html> <head> <meta charset='utf-8' /> <title>XX...
来源: Laya_社区 发布时间: 20181120
...Body); let bodyOriA = bodyA.getBody(); let bodyOriB = bodyB.getBody(); let position = bodyOriB.GetPosition(); // let center = bodyOriA.GetPosition(); let center = new box2d.b2Vec2((450 + 100) / Physics.PIXEL_RATIO, (300 + 100) / Physics.PIXEL_RATIO); const d = box2d.b2Vec2.SubVV(center, position, ne...
来源: Laya2.0_示例 发布时间: 20241119
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170422
... Returns DrawTextureCmd | null drawTextures drawTextures(texture: Texture, pos: any[], colors?: number[]): DrawTexturesCmd | null Inherited from Graphics.drawTextures Defined in laya/display/Graphics.ts:255 批量绘制同样纹理。 Parameters texture: Texture 纹理。 pos: any[] 绘制次数和...
来源: Laya3.0_api 发布时间: 20231115
...创建完毕,此方法只执行一次 onAwake(): void { this.radiogroup.pos(100, 100); this.radiogroup.labels = "label0,label1,label2"; this.radiogroup.space = 20; this.radiogroup.selectedIndex = 0; this.radiogroup.direction = "vertical"; } } 二、创建自定义的RadioGroup组件 上一小节...
来源: Laya3.0_文档 发布时间: 20241014
...umber = (i / this.COLUMNS | 0) * this.VERTICAL_SPACING + this.yOffset; btn.pos(x, y); console.log(x, y); } } private createButton(skin: string): Laya.Button { var btn: Laya.Button = new Laya.Button(skin); this.owner.addChild(btn); return btn; } } 上述代码运行效果如动图2-1所示: (动图...
来源: Laya3.0_文档 发布时间: 20241014
...nlit(不受光),PBR(基于物理渲染),Particle(粒子),PostProcess(后期处理)。 2.如何自定义Shader 2.1 Mesh中常见的属性 polygon这个词来自希腊语,由poly(很多)和gnow(角)组成,根据定义,多边形是指以线段为界的封闭平面图形 在...
来源: Laya3.0_文档 发布时间: 20241014
...men/texture/layabox.png"); box.meshRender.material = boxMat; box.transform.position = new Laya.Vector3(0.3, 0.5, 0.5); box.transform.rotate(new Laya.Vector3(0, 30, 0), false, false); let boxCollider1:Laya.BoxCollider = box.addComponent(Laya.BoxCollider) as Laya.BoxCollider; boxCollider1.setFromBound...
来源: Laya_社区 发布时间: 20180820
...rchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROLL SHRINK VISIBLE _passwordChar drawtocanvCtx langPacks Accessors _isHe...
来源: Laya3.0_api 发布时间: 20231115
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setScroll setSelfBounds set_anchorX set_anchorY set_bottom set_dataSou...
来源: Laya3.0_api 发布时间: 20231115