大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0112 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...aDepthTextureModeFlag release __initDefine__ init Constructors constructor new ColorGradEffect(): ColorGradEffect Overrides PostProcessEffect.constructor Defined in laya/d3/core/render/PostEffect/ColorGradEffect.ts:499 创建一个 BloomEffect 实例。 Returns ColorGradEffect Properties _lutTex _lu...
来源: Laya3.0_api 发布时间: 20231115
...Point sphereContainsSphere sphereContainsTriangle Constructors constructor new CollisionUtils(): CollisionUtils Defined in laya/d3/math/CollisionUtils.ts:26 创建一个 Collision 实例。 Returns CollisionUtils Methods Static boxContainsBox boxContainsBox(box1: BoundBox, box2: BoundBox): number De...
来源: Laya3.0_api 发布时间: 20231115
...体到场景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能,因此预制体也...
来源: Laya3.0_文档 发布时间: 20241014
...有方向性,也不会产生阴影,其默认值为半透明的灰色 new Color(0.2, 0.2, 0.2, 0),如图3-1所示。用于提供一种均匀、柔和的基础照明效果,避免画面在缺乏光源时完全变暗。 (图3-1) 在渲染实现上,ambientColor 会被传递到 2D 渲染管...
来源: Laya3.0_文档 发布时间: 20251231
...ffAll offAllCaller on once destroyUnusedResources Constructors constructor new BaseTexture(width: number, height: number, format: number): BaseTexture Overrides Resource.__constructor Defined in laya/resource/BaseTexture.ts:176 实例化一个纹理 Parameters width: number 长 height: number 宽 fo...
来源: Laya3.0_api 发布时间: 20231115
...体到场景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能,因此预制体也...
来源: Laya3.0_文档 发布时间: 20251105
...ssage type var AwesomeMessage = root.lookup("msg.LoginReq"); // Create a new message var message = AwesomeMessage.create( { openid: "AwesomeString" }); console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(mes...
来源: Laya_社区 发布时间: 20180704
...下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } on...
来源: Laya3.0_文档 发布时间: 20251010
...vas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//...
来源: laya_api 发布时间: 20170929
...创建完毕,此方法只执行一次 */ onAwake(): void { let sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.graphics.fillText("fillText:引擎绘制的文本,适合简单的单行文本", 100, 300, " 60px simHei ", "#ff0000", "left"); } 在Text与Label中,font仅仅是指系...
来源: Laya3.0_文档 发布时间: 20251010