Files
ppg-modkit/extracted_wiki_content/snippets/editing_pre_existing_items.txt

9 lines
475 B
Plaintext

URL: https://wiki.studiominus.nl/snippets/editingExistingItems.html
Title: People Playground Modding - Editing pre-existing items
==================================================
Editing pre-existing items
by Talon
A decently underutilized function of the modding API is the ability to change items that already exist.
ModAPI.FindSpawnable("Sword").Description = "This sword SUCKS!!!";
ModAPI.FindSpawnable("Sword").Prefab.GetComponent<SpriteRenderer>().color = Color.red;