Summary
If the specified `type` has no members, remove it from its declaring type, call
Weaver.Editor.Procedural.Scripting.ElementBuilder.ReleaseToPool
, and set the reference to null.
- Assembly
- Weaver
.dll - Namespace
- Weaver
.Editor .Procedural .Scripting - Containing Type
- Element
Builder Group Extensions
Syntax
public static void ReleaseToPoolIfEmpty<T>(ref T group)
where T : ElementBuilder, IElementBuilderGroup
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
group | T |
Return Value
Type | Description |
---|---|
void |