Forum Discussion

RaleighICETS's avatar
RaleighICETS
Copper Contributor
Sep 14, 2022

Hololens/ UXTools - How To Activate/Deactivate a Non-Scene Component (UNREAL)

Hello,

I am working with the UXTools Bounds Control non-scene component, developing for the Hololens in Unreal Engine 4.27. I am using this component to allow the user to grab, scale and rotate an item, but I need it to only become active once conditions have been met. Presently the component remains visible and active as soon as it is added to a blueprint.

Things I have tried to dynamically activate it:

Using activate/ deactivate node, which seemingly had no effect

Using set visibility and set actor hidden in game, which had no effect

Trying to add, attach and destroy the component at runtime, which seems to be designed only to work with scene components

Setting static meshes of the box to none at runtime to at least hide their visible appearance, also did not work

I am working in a blueprint only project so I cannot edit the native C++ for the component. Are there any other options available to me for activating/deactivating, attaching/unattaching, or showing/hiding a non-scene component within blueprints?

Resources