Private Set still allows inspector to assign to List
Issue #99
resolved
Hi,
I wanted to see if it was possible to allow the GameDesigner to See the items in the Inventory, without actually being able to modify it in the inspector. I did a bit of experimenting, and noticed that even though I have a "private set" i can still freely modify the list within the inspector. As a programmer, this is very unusual. Wanted to know if there is a fix for this?
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Check out the ListDrawerSettings attritube. It can mark a list and its functionality readonly without disabling the gui.
http://sirenix.net/odininspector/documentation/sirenix/odininspector/listdrawersettingsattribute
you can also try using the ReadOnly attribute. That will disable everything within the list as well.