PartChanger
Last updated
Last updated
The PartChanger is able to change the visual appearance of a part on certain events. For doing this all child components under the object with the MU script attached to are getting replaced by a new part. The new part should always be a Prefab which is saved somewhere in the project.
You can find a Demo scene for the PartChanger under Assets/realvirtual/Scenes/DemoChangeMU.unity
The part changer can change the visual appearance of the component where the part changer is attached to (Change this part option) or to change the visual appearance of an MU which is detected by a Sensor (Change On Sensor option)
You need to set a Part Number in the Part changer. This is the number, starting from 0, in the list of available Appearances. The list of available Appearances can be on the MU or on the PartChanger itself if no MU is changed.
Is changing the appearance of MUs which are entering the defined sensor.
Is changing the appearance of the object where the PartChanger script is attached to. This means that the part changer needs to be attached to an MU.
You can select a condition when the Part should be changed.
Condition Sensor Is Touched
This property allows the visual appearance of a part to change when a sensor detects a part. If set to true, the part will change as soon as the sensor touches an MU.
Condition Part Number Is Changing
When enabled, this property changes the visual appearance of the part whenever the PartNumber
value changes. This is useful for dynamically updating the appearance based on external triggers, such as updates from a PLC or other logic controllers.
Condition PLC Signal Change
If enabled, this property changes the part's visual appearance when the corresponding PLC signal (PLCChangePartNow
) changes. This is especially useful when integrating with PLC systems to trigger a part change based on automation logic. The part will be updated each time the signal changes its state.
You can connect two PLC Signals. One for starting the visual change and one for selecting a new part number.
© 2022 in2Sight 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.