yosh
1
Hi,
i want to add the “LuminanceBlur”-filter to all my camera objects at runtime but the namespace could not be found.
All my scripts are in the “Standard Assets” folder. Any ideas what to do?
error CS0246: The type or namespace
name `LuminanceEdgeBlur’ could not be
found. Are you missing a using
directive or an assembly reference?
foreach (GameObject cam in _camArray)
{
LuminanceEdgeBlur l = _camExt.AddComponent<LuminanceEdgeBlur>();
l.offsetScale = 0.05f;
l.blurRadius = 70.0f;
}
Put Controller.cs outside of “Standard Assets”.
E.g. open your own: “Scripts/Manager/Controller.cs”.
I wouldn’t put your own scripts under Standard Assets as a role.