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

How to reference classes inside Assets folder from a script inside Packages folder?

$
0
0
Hello, This might be a very noob question but I have stuck on this problem. Suppose I have a script called "HelloWorld. cs" inside a custom package and is inside the Packages folder. namespace Example. HelloWorld (This is inside the Packages folder) { public class Example { void DoSomething() { //just for example I am not using FIndobject of Type FindObjectOfType.ItsDone(); } } } The other class looks like this (This is inside the Assets folder): using Example.HelloWorld; public class Example2 { public void ItsDone(); } This is not possible as I cannot refer the Example2 class. This might be a noob question but is there any better optimized way to do this or how to do it correctly.

Viewing all articles
Browse latest Browse all 398

Trending Articles



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