ElementBuilderGroupExtensions.

ReleaseToPoolIfEmpty<T>(T) Method

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.

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