SetAsDefault(Preset)
Sets the Preset as the default for its target type in the project.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Presets
- Assembly: UnityEditor
public static bool SetAsDefault(Preset preset)
Parameters
The Preset asset to set as the default.
Returns
Type | Description |
|---|---|
| bool | Returns true if the Preset is successfully set as the default, or false otherwise. |