FMOD.Studio.EventInstance.release C# (CSharp) Method

release() public method

public release ( ) : RESULT
return RESULT
        public RESULT release()
        {
            return FMOD_Studio_EventInstance_Release(rawPtr);
        }
        public RESULT isVirtual(out bool virtualState)

Usage Example

Beispiel #1
0
    void Update()
    {
        if (shake != null)
        {
            if (!shake.IsPlaying())
            {
                if (mainCam.transform.localPosition != camPos)
                {
                    mainCam.transform.localPosition = camPos;
                }
            }
        }

        // Checks playing track to see if it is finished playing
        if (playingTrack.isValid())
        {
            FMOD.Studio.PLAYBACK_STATE playbackState;
            playingTrack.getPlaybackState(out playbackState);
            if (playbackState == FMOD.Studio.PLAYBACK_STATE.STOPPED)
            {
                //Debug.Log("DEBUG: Releasing stopped track.");
                playingTrack.release();



                playing = null;
                notifier.Stop();
            }
        }
        else
        {
            IsStopping = false;
        }
    }
All Usage Examples Of FMOD.Studio.EventInstance::release
EventInstance