- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
oliverolsen12 · Sep 15, 2013 at 01:49 PM ·
imageeffect
error CS0101
Hello can somone help me?
error CS0101: The namespace global::' already contains a definition for
ColorCorrectionEffect'
Here's the code:
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
[AddComponentMenu("Image Effects/Color Correction (Ramp)")]
public class ColorCorrectionEffect : ImageEffectBase
{
public Texture textureRamp;
void OnRenderImage (RenderTexture source, RenderTexture destination)
{
material.SetTexture ("_RampTex", textureRamp);
Graphics.Blit (source, destination, material);
}
}
i'm using unity 4.2.1
Comment
just change the name from the script to something like: adjustcolor
what this error actualy says is that unity already has a command for ColorCorrectionEffect