# Upgrading from 1.0 - 2.0 issues

**URL:** <https://qa.fmod.com/t/upgrading-from-1-0-2-0-issues/17118>\
**Category:** Unity\
**Created:** [April 26, 2021, 4:02pm UTC](https://qa.fmod.com/t/upgrading-from-1-0-2-0-issues/17118 "2021-04-26T16:02:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eblomquist](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/eblomquist/32/2166_2.png) [@eblomquist](https://qa.fmod.com/u/eblomquist)\
**Post date:** [April 26, 2021, 4:02pm UTC](https://qa.fmod.com/t/upgrading-from-1-0-2-0-issues/17118/1 "2021-04-26T16:02:24Z")

</div>

Hi!

We are updating a Unity project from FMOD 1.0 to FMOD 2.0, and finding that our scripts for 1.0 aren’t compatible with 2.0 as the access to EventInstances seems to have been removed. Please see the following method - this does not work in 2.0, but did work in 1.0. I have marked the errors we receive. Could you please help walk us through how to update this method for 2.0? Thank you!

Code is linked here: [CodePile | Easily Share Piles of Code](https://www.codepile.net/pile/MpWvmdNx)

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [April 27, 2021, 6:18am UTC](https://qa.fmod.com/t/upgrading-from-1-0-2-0-issues/17118/2 "2021-04-27T06:18:20Z")

</div>

You must be updating from a quite old version, I’d highly recommend checking out our [documentation](https://fmod.com/resources/documentation-unity?version=2.1&page=welcome.html), also the [basic usage example](https://fmod.com/resources/documentation-unity?version=2.1&page=examples-basic.html) should help.

- To create an EventInstance, use [RuntimeManager.createInstance](https://fmod.com/resources/documentation-unity?version=2.1&page=api-runtimemanager.html#createinstance)
- To check validity use .isValid() instead of a null check
- Setting parameters is done directly on an EventInstance by ID or name, see [this guide](https://fmod.com/resources/documentation-api?version=2.1&page=welcome-whats-new-200.html#new-parameter-api) for details about the new parameter API.
