//only update value that has been Serialized above public override void UpdateValue(ComputeShaderParameterBase other) { var newValue = other as ComputeShaderParameter <T>; if (newValue != null) { this.VariableName = newValue.VariableName; this.Value = newValue.Value; } else { Debug.LogWarning("Cannot update value for type " + this.GetType().ToString()); } }
public abstract void UpdateValue(ComputeShaderParameterBase other);