I have a script- using System.Collections;using System.Collections.Generic;using Assets.Resou - Pastebin.com . It’s being attached to a prefab. Every time I restart unity(after saving everything) all the property values are reseted to default. Why?! Also my previous question which I consider to be closely related to the problem. Please… why would this happen?
UPDATE1: So I know that unity can’t have properties in the editor and that’s why I made myself this custom editor in order to be able to use props in the editor. I made all the props to public fields(smth I don’t like) and it worked perfectly fine with sliders or whatever UI you can think of. What am I doing wrong with the props? The way I’m exposing them or what?
P.S. I experimented with whatever other components you could think of and it worked with all of them. Including other scripts made by me with some checks on them(without having an editor code).