QuickOutline icon indicating copy to clipboard operation
QuickOutline copied to clipboard

Remove outline of Instantiated object not working

Open kipBO opened this issue 1 year ago • 0 comments

Howdy all! I'm trying to remove a outline on a Instantiated object but it's not working. Can anyone spot what I'm doing wrong?

GameObject buildedItem = Instantiate(BuildingMenuItem.newItemModel);
Outline removeOutline = buildedItem.GetComponent<Outline>();
removeOutline.OutlineWidth = 0f;

kipBO avatar May 02 '23 13:05 kipBO