大约有 488 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
...rivate intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便...
来源: Laya3.0_文档 发布时间: 20251010
...ited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 Component enabled : Boolean 获取是否启用组件。 Component id : int[read-only] 获取唯一标识ID。 Component isSingleton : Boolean[override] [read-only] 获取是否为单实例组...
来源: Laya2.0_api 发布时间: 20190513
...ne/XunLongShi.ls",Laya.Handler.create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLigh...
来源: Laya2.0_文档 发布时间: 20210715
...ene/XunLongShi.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLigh...
来源: Laya2.0_文档 发布时间: 20210715
...ited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 Component enabled : Boolean 获取是否启用组件。 Component id : int[read-only] 获取唯一标识ID。 Component isSingleton : Boolean[override] [read-only] 获取是否为单实例组...
来源: Laya2.0_api 发布时间: 20190513
...远程分支。效果如下图所示。  ##### 5.1.2 获取layaAir官方分支的最新版本 layaAir远程分支添加成功后,可以使用 `git fetch layaAir` 命令获取layaAir官方的分支到本地。  ##### 5.1.3 合并分支 当本地已存在layaA...
来源: Laya2.0_文档 发布时间: 20210714
... this._text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch = this._scene.input.getTouch(0); //是否为新一次触碰,并未发生移动 if (this.first){ ...
来源: Laya_社区 发布时间: 20190605
...也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过每秒更新数字实现计时器的功能,有兴趣的读者可以自己通过代码设置Clip,创建出符合自己项目中需要的Clip。 **示例代码:** ```typescrip...
来源: Laya2.0_文档 发布时间: 20210714
...ngShi.ls",Handler.create(null,function(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var d...
来源: Laya2.0_文档 发布时间: 20210715
...脚本一次 owner owner: Node Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Defined in laya/components/Component.ts:35...
来源: Laya3.0_api 发布时间: 20231115