Y
Y
Yura Mailler2021-10-07 20:13:45
Unity
Yura Mailler, 2021-10-07 20:13:45

How to make a script and apply it to several objects and so that each has its own data?

Hello! Conquering the expanses of YouTube about a year ago, I found a video where the author of this video made it so that he had 1 script and when he applied this script to several objects, he could make his own values ​​\u200b\u200bfor each object through the editor without changing the values ​​​​of other objects, the question is how to do the same?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-10-07
@Yura111

So this is the basic functionality of MonoBehaviour. Serializable fields are serialized in each prefab/object separately

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question