Unity 5.6 error UnityEngine.Component' does not contain a definition for `materials' and no extension method `materials' of type `UnityEngine.Component' could be found. Are you missing an assembly reference?

Here is my script and getting error please give me solution its urgent and I am making AA FPS pls help me

/*
	SetRenderQueue.cs
 
	Sets the RenderQueue of an object's materials on Awake. This will instance
	the materials, so the script won't interfere with other renderers that
	reference the same materials.
*/

using UnityEngine;


[AddComponentMenu("Rendering/SetRenderQueue")]

public class Render : MonoBehaviour {
	
	[SerializeField]
	protected int[] m_queues = new int[]{3000};
	
	protected void Awake() {
		 Material [] materials = renderer.materials;
		for (int i = 0; i < materials.Length && i < m_queues.Length; ++i) {
			materials<em>.renderQueue = m_queues*;*</em>

* }*
* }*
}
error
Assets/Scripts/Render.cs(20,37): error CS1061: Type UnityEngine.Component' does not contain a definition for materials’ and no extension method materials' of type UnityEngine.Component’ could be found. Are you missing an assembly reference?
Thanks in advance :slight_smile:
Urgent !!!

change renderer in GetComponent<MeshRenderer> or GetComponent<Renderer>