Assetbundle Variants for Prefab~~

I want to use variants assetbundle to change high poly mesh model and low poly mesh model.

The folders are HighPoly/robot.prefab (set assetbundle label robot.high in folder) and LowPoly/robot.prefab (set assetbundle label robot.low in folder).

The scirpt is
public class LoadRobot : MonoBehaviour {
public GameObject mRobot;
void Start()
{ Instantiate(mRobot); }

The default mRobot id used low-poly robot.

When use the variants “low” is Ok.

But use the “high”, the mRobot will missing.

What happened?

Where do you set mRobot? In the Editor? Isn’t that forcing a connection to one prefab or the other?

I set LowPoly/robot.prefab to mRobot in the Editor.
If the variants sets “low”, that is Ok.
But sets the “high”, the mRobot will missing.

Well it’s missing because that connection is invalid if the High Poly Asset Bundle is loaded and the Low Poly Asset Bundle is not.

You should try setting it dynamically with AssetBundle.LoadAsset().