Three/R168/Dragcontrols Getraycaster To Controls Raycaster

/icons/calendar.svg

Last update

Sep 2, 2024

This codemod renames DragControls.getRaycaster() to controls.raycaster

Example

Before

taScene.dragcontrols.getRaycaster();

After

taScene.controls.raycaster;

Before

dragcontrols.getRaycaster();

After

controls.raycaster;

Before

if (something) {
anything.dragcontrols.getRaycaster();
}

After

if (something) {
anything.controls.raycaster;
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now