# Contruction Script set material on coin

**URL:** <https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479>\
**Category:** International\
**Tags:** unreal-engine, question\
**Created:** [August 1, 2023, 8:33pm UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479 "2023-08-01T20:33:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madeira3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/madeira3d/32/902998_2.png) [@Madeira3d](https://forums.unrealengine.com/u/Madeira3d)\
**Post date:** [August 1, 2023, 8:33pm UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479/1 "2023-08-01T20:33:23Z")

</div>

Hi,

I have a simple Coin Blueprint (BP), and I would like to add an option to the Construction Script so that I can apply my Coin BP in the Editor and choose the material for that coin. Ideally, I’d like to have four material options: Material1 = “Something”, Material2 = “Copper”, Material3 = “Gold”, and Material4 = “User-Defined” (where the user can set their desired material in the Editor).

Can someone please help me with this?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/8/6483ebab4e1f70b6cc5e30b34180a7a651496cbd.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 2, 2023, 7:19am UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479/2 "2023-08-02T07:19:47Z")

</div>

Make a enumerator

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/5/0250fcb614cff5c84c28a0d3ace3f1ac7aa591eb.png)

In the coin BP, make a variable of the enum type, an array of type ‘material interface’, and a variable of the same type. Make them visible

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/0/ae076eb9570dcce0d03155720966f34f41b95ff2.png)

Use the script

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/1/ed1ee91add7c84cfeb6db0d68b2eea78328d6667.png)

![coin types](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/e/1ded975b9d2b6cdd417a51ca662eee2e28da05c4.gif)

---

<div class="post-metadata">

**Author:** ![Madeira3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/madeira3d/32/902998_2.png) [@Madeira3d](https://forums.unrealengine.com/u/Madeira3d)\
**Post date:** [August 2, 2023, 1:12pm UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479/3 "2023-08-02T13:12:28Z")

</div>

Your the best @ClockworkOcean !

I wish this community had at least 100 like you.

Thanks a lot, I will try this.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 2, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479/4 "2023-08-02T13:43:01Z")

</div>

🕶 👍

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 1, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/contruction-script-set-material-on-coin/1247479/5 "2023-09-01T13:43:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
