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
Since the prefab has a recipe, must be pickupable
  • Loading branch information
LeeTwentyThree committed Mar 1, 2024
commit 3bc5d8a5a9c6c1ff58d21ee9f8e2391952712175
3 changes: 3 additions & 0 deletions Nautilus/Documentation/guides/assetbundles.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ namespace ExamplePrefab
// You can use the optional inputs here to change the look of your object
MaterialUtils.ApplySNShaders(myCoolPrefab);

// Allows the object to be picked up
myCoolPrefab.AddComponent<Pickupable>();

// Return the GameObject with all the components added
return myCoolPrefab;
}
Expand Down
Loading