コード例 #1
0
 public override void VisitAttributeSection(AttributeSection attributeSection)
 {
     base.VisitAttributeSection(attributeSection);
     if (attributeSection.Attributes.Count == 0)
     {
         attributeSection.Remove();
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 public override void VisitAttributeSection(AttributeSection attribute)
 {
     attribute.Remove();
 }