I have searched around but can’t find why I can’t access a public Enum from another script attached to the same GO.
I am trying to access the SSAOEffect script that have the Enum
public enum SSAOSamples {
Low = 0,
Medium = 1,
High = 2,
In my other script I have this code
///SSAO Effect
public void SSAOEffect(string mSSAO) {
if(mSSAO == "0")
GetComponent<SSAOEffect>().m_SampleCount = SSAOEffect.SSAOSamples.Low;
if(mSSAO == "1")
GetComponent<SSAOEffect>().m_SampleCount = SSAOEffect.SSAOSamples.Medium;
if(mSSAO == "2")
GetComponent<SSAOEffect>().m_SampleCount = SSAOEffect.SSAOSamples.High;
}
But Unity throws me this error “Expression denotes a method group', where a
variable’, value' or
type’ was expected”
How do you get access to the “SSAOSamples” enum??
I am clueless