Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 30, 2018 12:33
Show Gist options
  • Save todorok1/ae8f5e7df8d5a3bb4dec6ed5c6b92b61 to your computer and use it in GitHub Desktop.
Save todorok1/ae8f5e7df8d5a3bb4dec6ed5c6b92b61 to your computer and use it in GitHub Desktop.
同じコンポーネントを複数アタッチ
[DisallowMultipleComponent]
public class MultipleComponentTest : MonoBehaviour {
void Start(){
gameObject.AddComponent<MultipleComponentTest>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment