Skip to content

Instantly share code, notes, and snippets.

@lucasmeijer
Created July 27, 2011 20:53
Show Gist options
  • Save lucasmeijer/1110347 to your computer and use it in GitHub Desktop.
Save lucasmeijer/1110347 to your computer and use it in GitHub Desktop.
you can do this:
struct HanfordsCombinedAudioSettings
{
AudioClip sound;
float volume;
int count;
}
and then in some monobehaviour:
public class SomeMonoBehaviour : MonoBehaviour
{
List<HanfordsCombinedAudioSettings> audiosettings;
}
no idea where that "needs seperate prefab" story comes from, it's incorrect. This above should be editable
and inspectable by the out of the box monobehaviour inspector in unity.
cya at unite? L
@lucasmeijer
Copy link
Author

eh actually, maybe those structs fields need to be public, and maybe you need to say [Serializable] on the struct. not sure if those are required or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment