Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset bundles guide #534

Merged
merged 11 commits into from
Mar 1, 2024
Prev Previous commit
Next Next commit
Replace constant classID with PrefabInfo one
Co-authored-by: Lee23 <[email protected]>
  • Loading branch information
Indigocoder1 and LeeTwentyThree committed Mar 1, 2024
commit 699d92e4c2df33685e709738a2469d575e2a1b42
2 changes: 1 addition & 1 deletion Nautilus/Documentation/guides/assetbundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ namespace ExamplePrefab

// The classID is the same as the one we put into the PrefabInfo.WithTechType up above
// The LargeWorldEntity.CellLevel determines how far away the object will be loaded from the player
PrefabUtils.AddBasicComponents(myCoolPrefab, "myCoolPrefab", MyPrefabInfo.TechType, LargeWorldEntity.CellLevel.Medium);
PrefabUtils.AddBasicComponents(myCoolPrefab, MyPrefabInfo.ClassID, MyPrefabInfo.TechType, LargeWorldEntity.CellLevel.Medium);

// Makes the GameObject have the correct shaders
// You can use the optional inputs here to change the look of your object
Expand Down
Loading