UNITY IPHONE script error
@script ExecuteInEditMode
class EdgeDetectEffectNormals extends ImageEffectBase
{
function Start() {
camera.depthTextureMode = DepthTextureMode.DepthNormals;
}
function OnRenderImage (source : RenderTexture, destination : RenderTexture)
{
ImageEffects.BlitWithMaterial (material, source, destination);
}
}
Assets/Edge Detection/EdgeDetectEffectNormals.js(6,24): BCE0019: ‘depthTextureMode’ is not a member of ‘UnityEngine.Camera’.
Assets/Edge Detection/EdgeDetectEffectNormals.js(6,43): BCE0005: Unknown identifier: ‘DepthTextureMode’.
How to modify the