Summary
[Editor-Conditional]
Sets the
UnityEngine.Transform.parent to a default object based on its name.
This keeps the hierarchy neat in the Unity Editor without wasting processing time on it at runtime.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- WeaverUtilities
Syntax
[System.Diagnostics.Conditional(UnityEditor)]
public static void EditorSetDefaultParent(Transform transform, string suffix = null)
Attributes
| Type | Description |
|---|---|
| ConditionalAttribute |
Parameters
| Name | Type | Description |
|---|---|---|
| transform | Transform | |
| suffix | string |
Return Value
| Type | Description |
|---|---|
| void |