I applied it like this after adding npm playfab sdk.
However, it is confirmed as undefined.
Teach me what the problem is
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
import { PlayFab,PlayFabClient } from 'playfab-sdk';
@ccclass('Test')
export class Test extends Component {
protected onEnable(): void {
if(PlayFab === undefined)
console.log('?? undefined');
PlayFab.settings.titleId = 'asda';
}
}