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

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

91. 关于WebGL矢量图的遮罩问题 [ 72%]

...//等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半...

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

92. 2D线渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...

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

93. laya.d3.core.scene.VRScene [ 72%]

...agelaya.d3.core.sceneClasspublic class VRSceneInheritanceVRScene BaseScene Sprite Node EventDispatcher Object VRScene 类用于实现VR场景。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为...

来源: laya_api 发布时间: 20170422

94. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 72%]

...ic title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NONE; var imageData = this.canvasWrapText({c...

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

95. 2D节点使用3D · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...件2.2 3D场景添加渲染物2.3 设置摄像机的目标纹理2.4 设置Sprite的Texture2.5 修改渲染纹理属性三、代码中混合使用3D混合使用3D 一、概述 在2D项目开发过程中,开发者往往需要在UI界面显示3D场景或者3D物体,比如游戏开发中,3D人物...

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

96. Label设置了isHtml后使用html格式有问题 [ 72%]

...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 求高人分享使用protobuff框架...

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

97. laya.display.Sprite [ 71%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectSubclasses AnimationBase, PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列...

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

98. laya.ui.CheckBox [ 71%]

...agelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button UIComponent Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,默认该标签位于 CheckBox 右侧。 CheckBox 使用 dat...

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

99. laya.d3.core.scene.BaseScene [ 71%]

... Packagelaya.d3.core.sceneClasspublic class BaseSceneInheritanceBaseScene Sprite Node EventDispatcher ObjectImplements ISubmitSubclasses Scene, VRScene BaseScene 类用于实现场景的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By...

来源: laya_api 发布时间: 20170422

100. laya.display.Sprite [ 71%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames SpriteProperties | Methods | Events Packagelaya.displayClasspublic class SpriteInheritanceSprite Node EventDispatcher ObjectImplements laya.display.ILayoutSubclasses AnimationPlayerBase, Component, DialogManager, GridSprit...

来源: laya_api 发布时间: 20170929