What if a visiting scientist develops some code?

The UC Copyright Policy provides that the University owns software developed using University resources, funds and facilities. If the software embodies a patentable invention, there may be additional ownership issues to consider.