Skip to content

Instantly share code, notes, and snippets.

@stella3d
Last active May 20, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stella3d/933d75dd04b8dbec778c68d926597e80 to your computer and use it in GitHub Desktop.
Save stella3d/933d75dd04b8dbec778c68d926597e80 to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEngine.Serialization;
public class NiceDataClass : MonoBehaviour {
[SerializeField]
public string name;
[SerializeField]
public int particleCount;
}
using UnityEngine;
using UnityEngine.Serialization;
public class NiceDataClass : MonoBehaviour {
[FormerlySerializedAs("name")]
[SerializeField]
public string objectName;
[FormerlySerializedAs("particleCount")]
[SerializeField]
public int count;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment