TweetAvatar.cs 480 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TweetAvatar : MonoBehaviour {
  5. public Camera avatarCamera;
  6. // Use this for initialization
  7. void Start ()
  8. {
  9. //SaveAvatar();
  10. }
  11. public void SaveAvatar()
  12. {
  13. if (avatarCamera != null)
  14. {
  15. avatarCamera.gameObject.SetActive(true);
  16. avatarCamera.Render();
  17. avatarCamera.gameObject.SetActive(false);
  18. }
  19. }
  20. }