public Material GetModifiedMaterial(Material material) { CanvasMapping mapping = GetComponentInParent <CanvasMapping>(); if (mapping != null) { mapping.SetCanvasToScreenParameters(material); } return(material); }
protected override void Awake() { base.Awake(); m_mapping = GetComponent<CanvasMapping>(); }