private void PlayPreview(CriAtomExAcb acb, string cuename)
 {
     if (previewPlayer == null)
     {
         previewPlayer = new CriAtomEditor.PreviewPlayer();
     }
     previewPlayer.Play(acb, cuename);
 }
    private void OnEnable()
    {
        this.source = (CriAtomSource)base.target;
        this.style  = new GUIStyle();

#if CRI_UNITY_EDITOR_PREVIEW
        /* シーンからCriAtomコンポーネントを見つけ出す */
        atomComponent = (CriAtom)FindObjectOfType(typeof(CriAtom));
#endif
        previewPlayer = new CriAtomEditor.PreviewPlayer();
    }
示例#3
0
 private void OnDisable()
 {
     if (previewAcb != null)
     {
         previewAcb.Dispose();
         previewAcb = null;
     }
     lastCuesheet = "";
     if (previewPlayer != null)
     {
         previewPlayer.Dispose();
         previewPlayer = null;
     }
 }
示例#4
0
    private void OnEnable()
    {
        this.source             = (CriAtomSource)base.target;
        this.style              = new GUIStyle();
        m_followsOriginalSource = serializedObject.FindProperty("randomize3dConfig.followsOriginalSource");
        m_calculationType       = serializedObject.FindProperty("randomize3dConfig.calculationType");
        m_calculationParameters = serializedObject.FindProperty("randomize3dConfig.calculationParameters");

#if CRI_UNITY_EDITOR_PREVIEW
        /* シーンからCriAtomコンポーネントを見つけ出す */
        atomComponent = (CriAtom)FindObjectOfType(typeof(CriAtom));
#endif
        previewPlayer = new CriAtomEditor.PreviewPlayer();
    }