Skip to content

Instantly share code, notes, and snippets.

@lynxelia
Last active February 10, 2018 02:20
Show Gist options
  • Save lynxelia/d103dcba61ca7114110cfa88614a2fb2 to your computer and use it in GitHub Desktop.
Save lynxelia/d103dcba61ca7114110cfa88614a2fb2 to your computer and use it in GitHub Desktop.
Example of a class that has an UnityEngine.Object field reference that will not be garbage collected
public class ReferenceHolder : MonoBehaviour
{
public Sprite m_SpriteValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment