Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

C# Does Unity support loading from Resources class?

$
0
0
namespace SQLHacker { public class SQLUI : MonoBehaviour { void Awake() { var myString = SQLHacker.Properties.Resources.CorrectQuery_01; } } } I have set default namespace in the solution properties of Editor/Plugins and main soluition in VS and in Unity in edit->project settings->editor. I am wanting to load a long string to the var myString. I get the error Properties could not be found in SQLHacker, are you missing an assembly reference? This only happens in Unity editor and is fine compiling in VS.

Viewing all articles
Browse latest Browse all 398

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>