Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

Using a getter but setting the value from the inspector

$
0
0
I want to be able to define a reference in the inspector, but only get that reference in the code—not set it. I was thinking this would work [SerializeField] public SomeClass SomeClass { get; } I've looked through other Unit Answers threads to no avail, probably due to my own lack of Google Fu. Thanks in advance.

Viewing all articles
Browse latest Browse all 215

Trending Articles