Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
Cambio de nombre de propiedades automáticas serializadas en Unity

Tengo una propiedad automática serializada en el Inspector y necesito cambiarle el nombre sin perder el valor serializado, normalmente usaría el atributo [FormerlySerializedAs(anteriorName)] para esto, el problema es que no funciona con propiedades automáticas , ¿alguien tiene alguna idea sobre esto?

Mi código:

 public class Test : MonoBehaviour { [field: SerializeField] [field: FormerlySerializedAs("previousName")] public Transform FieldIWantToRemainSerialized { get; private set; } }
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Un poco tarde, pero tal vez alguien lo encuentre útil, necesita usar esto:

 [field: FormerlySerializedAs("<previousName>k__BackingField")]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!