A flare asset. Read more about flares in the components reference.
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.
Additional resources: Flare assets, LensFlare class.
| Property | Description |
|---|---|
| hideFlags | Controls whether the object is hidden, saved with the scene, and editable by the user. |
| name | The name of the object. |
| Method | Description |
|---|---|
| GetEntityId | Gets the EntityId of the object. |
| GetHashCode | Returns the hash code for the object. |
| ToString | Returns the name of the object. |
| Method | Description |
|---|---|
| Destroy | Removes a GameObject, component, or asset. |
| DestroyImmediate | Destroys the specified object immediately. Use with caution and in Edit mode only. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindAnyObjectByType | Retrieves any active loaded object of Type T. |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| Instantiate | Clones the object original and returns the clone. |
| InstantiateAsync | Captures a snapshot of the original object that's related to another GameObject and obtains an AsyncInstantiateOperation instance of the resulting objects. |
| Operator | Description |
|---|---|
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |
| operator == | Compares two object references to see if they refer to the same object. |