Skip to content

Measure

Measure is measuring distances between the pivot point of the Gameobject, the Measure script is attached to and another pivot point of a referenced Gameobject.

You can also connect the result of the measurement to a PLCInput Signal. By doing this Measure is able to act as a distance sensor.

You can apply the following properties:

PropertyDescription
Measure FromGameobject the measurement should be performed from to this object.
Distance(Readonly) The measured distance as a vector.
Distance Abs(Readonly) The measured distance as an absolute value.
Set DistanceA distance that should be set by the button Set Distance
Keep Set DistanceIf set to true the SetDistance value is always set to the related Gameobject so that the distance between the two objects always keeps the same.
Display On SelectedDisplay the measurement only when the measurement object is selected.
Display AlwaysDisplay the measurement always.
Display LineDisplay a line between the Pivot Points in scene view.
Display AbsDisplay the absolute value as a number in scene view.
Display VectorDisplay the vector as numbers in scene view.
Use MillimetersDisplay one Unity Unit as 1000.
PLCSignalOffsetOffeset to the MeasuredDistance.
Measured DistancePLCInputFloat signal for the absolute distance.
Measured DistanceXPLCInputFloat signal for the DistanceX part of the Vector.
Measured DistanceYPLCInputFloat signal for the DistanceY part of the Vector.
Measured DistanceZPLCInputFloat signal for the DistanceZ part of the Vector.


© 2025 realvirtual GmbH https://realvirtual.io - All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including printing, saving, photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher.