Beispiel #1
0
 public override void VisitAttributeSection(AttributeSection attributeSection)
 {
     base.VisitAttributeSection(attributeSection);
     if (attributeSection.Attributes.Count == 0)
     {
         attributeSection.Remove();
     }
 }
        public override void VisitAttributeSection(AttributeSection attributeSelection)
        {
            var attribute  = attributeSelection.Attributes.First();
            var annotation = attribute.Annotation <MemberResolveResult>();

            if (annotation.Type.FullName == "System.SerializableAttribute" || annotation.Type.FullName == "UnityEngine.SerializeField")
            {
                return;
            }
            attributeSelection.Remove();
        }
Beispiel #3
0
 public override void VisitAttributeSection(AttributeSection attribute)
 {
     attribute.Remove();
 }