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

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

1001. laya.d3.core.scene.VRScene [ 35%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170422

1002. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txti...

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

1003. laya.ui.AutoBitmap_API3.0 [ 35%]

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

1004. laya.d3.webxr.core.WebXRInput_API3.0 [ 35%]

...ventDispatcher WebXRInput Index Constructors constructor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FRAMEUPDATA_WEBXRINPUT HANDNESS_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisE...

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

1005. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...创建完毕,此方法只执行一次 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_文档 发布时间: 20251016

1006. 自定义3D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...nlit(不受光),PBR(基于物理渲染),Particle(粒子),PostProcess(后期处理)。 2.如何自定义Shader 2.1 Mesh中常见的属性 polygon这个词来自希腊语,由poly(很多)和gnow(角)组成,根据定义,多边形是指以线段为界的封闭平面图形 在...

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

1007. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...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_文档 发布时间: 20251010

1008. 有关Laya3D碰撞检测疑问 [ 33%]

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

1009. laya.display.Text_API3.0 [ 33%]

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

1010. laya.ui.HScrollBar_API3.0 [ 33%]

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