Using pre existing assets on runtime

I am trying to load Pre-Existing assets on runtime in a script.

Example: I have a custom font I want to use in a Text Mesh. It is already loaded in the editor, I can apply it a Text Mesh with the editor. However when I want to use it on runtime I can not figure out a way to use it.

How do you use a pre existing asset on runtime?

You can create a folder on the root of your project named “Resources”. Unity will treat this Resources folder differently, in that you can load from it at runtime.

You can load from it using the following format:

GameObject enemy = Resources.Load("enemyPrefab");

Or in your example:

Font myFont = Resources.Load("myFontName");

Source: http://docs.unity3d.com/ScriptReference/Resources.Load.html