/// <summary>
 /// This function is called when the MonoBehaviour will be destroyed.
 /// </summary>
 private void OnDestroy()
 {
     if (m_TextureReaderApi != null)
     {
         m_TextureReaderApi.Destroy();
         m_TextureReaderApi = null;
     }
 }
Пример #2
0
    private string takeSnapshot()
    {
        TextureReaderApi api = new TextureReaderApi();

        //api.AcquireFrame(0, )

        return("d");
    }
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 public void Start()
 {
     if (m_TextureReaderApi == null)
     {
         m_TextureReaderApi = new TextureReaderApi();
         m_Command          = CommandType.Create;
         m_ImageBufferIndex = -1;
     }
 }
Пример #4
0
    private void OnDestroy()
    {
#if !UNITY_EDITOR
        if (m_TextureReaderApi != null)
        {
            m_TextureReaderApi.Destroy();
            m_TextureReaderApi = null;
        }
#endif
    }
Пример #5
0
    public void Start()
    {
#if UNITY_EDITOR
        this.enabled = false;
#endif
        if (m_TextureReaderApi == null)
        {
            m_TextureReaderApi = new TextureReaderApi();
            m_Command          = CommandType.Create;
            m_ImageBufferIndex = -1;
        }
    }