大约有 95 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
...性能的消耗较大。 1.1 IDE中创建滤镜 在LayaAir 3.0中,除了Sprite对象以外,可以将滤镜应用于任何显示对象,开发者通常对Image组件使用最多。选择Image组件,在属性设置面板的杂项中,添加滤镜的属性Filters,如动图1-1所示,演示...
来源: Laya3.0_文档 发布时间: 20250826
...1.4 脚本控制Text2. 代码创建Text基础文本(Text) Text继承于Sprite,是静态文本的基础组件。这里我们介绍一下Text专属的组件属性。 1. LayaAir IDE中使用Text 1.1 创建Text 如图1-1所示,可以在层级窗口中右键进行创建,也可以从小部件窗...
来源: Laya3.0_文档 发布时间: 20251010
... export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
...Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLEND_DST_RGB RENDER_STATE_BLEND_EQUATION RENDER_STATE_BLEND_EQUATION_ALPHA RENDER_STATE_BLEND_EQUATION...
来源: Laya3.0_api 发布时间: 20231102
...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...
来源: Laya3.0_文档 发布时间: 20251010
...s PointLight deprecated PointLight 类用于创建点光。 Hierarchy LightSprite PointLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWo...
来源: Laya3.0_api 发布时间: 20231115
...ass SpotLight deprecated SpotLight 类用于创建聚光。 Hierarchy LightSprite SpotLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWor...
来源: Laya3.0_api 发布时间: 20231115
...() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colorEffect2D = new Laya.ColorEffect2D(); //创建后期处理效果数组 ...
来源: Laya3.0_文档 发布时间: 20251010
...了2D灯光,例如:2D方向光(DirectionLight2D)、2D精灵光(SpriteLight2D)、2D自由形态光(FreeformLight2D)、2D聚光灯(SpotLight2D)这几个组件。本章节我们具体介绍如何使用灯光,以及这些灯光组件的基类共同属性。 一、灯光与网格的...
来源: Laya3.0_文档 发布时间: 20251010
...Light deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lig...
来源: Laya3.0_api 发布时间: 20231115