What I’m trying to do is to create a canvas element with its height and width determined by two gameobjects that represent the top-left and bottom-right respectively. The gameobjects are placed where the cursor is located when I air tap. Now the Vector3 position that I get for the two gameobjects are very close to each other numerically. So when I take the difference between the x-coordinate values, or the y-coordinate values, etc., that difference value is very small. Then when I instantiate the canvas based on the dimensions calculated, the resulting canvas’s width and height become really small under the RectTransform property. (note: scale is at (1, 1, 1)) It’s too small to place any UI on it. This can be remedied if the scale value in RectTransform is really small (instead of (1, 1, 1)). I came across this from examples provided in the HolotoolKit. The canvas element in these examples have really small scale values. For example, the ColorPickerExample has (0.05520535, 0.05520535, 0.05520535) for the canvas scale. With this scale value, the canvas size can be 100 by 100.
So my question is, I can I place a canvas at any scale given the desired boundary points?
Thanks in advance!