Flare 眩光
Inherits from Object
A flare asset.
一个眩光的资源,也可以成为光晕,闪光。
The flare class has no properties. It needs to be setup up in the inspector. You can reference flares and assign them to a Light at runtime.
眩光类没有属性,它需要在检视面板设置。你可以引用眩光并在运行时赋给一个灯光。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public Flare newFlare;
public void Awake() {
light.flare = newFlare;
}
}
// Expose a reference to a flare in the inspector
//在检视面板曝露一个眩光的引用
var newFlare : Flare;
// Assign the flare
//赋值眩光
light.flare = newFlare;
参考:LensFlare 类.
Inherited members继承成员
Inherited Variables继承变量
-
The name of the object. //物体的名字
-
Should the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
Inherited Class Functions继承类函数
-
Removes a gameobject, component or asset.
删除一个游戏物体、组件或资源
-
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。
-
Makes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。
-
Returns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。
-
Returns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表
-
Clones the object original and returns the clone.
克隆原始物体,并返回克隆的物体
Page last updated: 2010-12-13