I make a custom solution to support multiple resolution so I need an option to force the Rect Transform values of the canvas will not change when resolution/aspect ratio has changed. Thanks.
You could use centered anchors and offsets to ensure a constant pixel size. Otherwise OnRectTransformDimensionsChange() might be worth a look.