public static LTDescr LTFloat(this Material self, string property, float to, float time) { int id = Shader.PropertyToID(property); return(LeanVirtual.Value(self.GetFloat(id), to, time) .setOnUpdate((float x) => self.SetFloat(id, x))); }
public static LTDescr LTScale(this Material self, string property, Vector2 to, float time) { return(LeanVirtual.Value(self.GetTextureScale(property), to, time).setOnUpdate((Vector2 x) => self.SetTextureOffset(property, x))); }
public static LTDescr LTScale(this Material self, Vector2 to, float time) { return(LeanVirtual.Value(self.mainTextureScale, to, time).setOnUpdate((Vector2 x) => self.mainTextureScale = x)); }
public static LTDescr LTColor(this Material self, Color to, float time) { return(LeanVirtual.Value(self.color, to, time).setOnUpdate((Color x) => self.color = x)); }