Cc namespace for Creator 3.0

How do we get the cc. namespace back for Creator 3.0?
Without cc, it’s a bit of a hassle to import every type, and we also lose the intellisense that came with the cc. prompt.

Just type the class name you need, it will have an auto prompt to auto import the class from cc. We now export all modules and classes directly. You will also have all auto completion for APIs

You can also use

import { cclegacy as cc } from 'cc';

then you can use cc. as before, but trust me, it’s not even near the experience of auto import.

Ahh thank you!
I use cc to autosuggest the class names, because when switching between engines I sometimes forget what they’re called.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.