# Set Purchase Group Name

Grammar — Set the name of purchaseGroup to text
FlagsNative | Action

Sets the name for the specified purchase group.

# Arguments

Returns — void

native void PurchaseGroupSetNameText(
	int inPurchaseGroupId,
	text inText,
);

Category: Story / Tech Purchase Panel / Purchase Groups

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:7610

            PurchaseGroupCreate(PlayerGroupAll(), libCamp_gv_tS_TechCategory_UI[(libCamp_gv_tS_TechGroupCategoryID[lv_index])], 1);
            libCamp_gv_tS_TechGroup_UI[lv_index] = PurchaseGroupLastCreated();
            PurchaseGroupSetNameText(PurchaseGroupLastCreated(), libCamp_gv_tS_TechGroupName[lv_index]);
        }