v21’s avatarv21’s Twitter Archive—№ 75,716

    1. …in reply to @Nifflas
      @Nifflas it makes perfect sense : it indicates whether the serializer or UI system can access it, the same as any other type of code
  1. …in reply to @v21
    @Nifflas (I am being facetious here) but there is a fundamental thing here about the way that the C++ part of Unity can poke around in and exist outside of the C# part. which makes a lot of C# rules not quite work right.
    1. …in reply to @v21
      @Nifflas actually actually... I am having a similar frustration in Dart, where the json deserialization system (autogenerated in Dart) can't set the private backing fields because it's a partial class and not in the same file.
      1. …in reply to @v21
        @Nifflas but I suspect you like the rule "if the variable name starts with an underscore, it's invisible outside this file" even less than the Unity thing