Team Wilson Docs
  • PPG 3D
    • API
      • Main3D Function
      • Register
      • Action Events
      • Modify Property
      • Run Method
      • Add 3D Component
      • New Voxel Item
      • Categories
    • Voxels
      • Creating Your Own Voxel Model
      • Models
    • Snippets
      • Lean Monster Addon
    • Resources
  • RageBox
  • Character Creator
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. PPG 3D
  2. API

Add 3D Component

This function is used to add components from the mod to a gameobject in yours.

The function is actually called Add3DComponent. It only takes two parameters.

  1. GameObject to add to

  2. Name of component to add

Example:

GameObject.Find("Mod3DAPI").SendMessage("Add3DComponent", new object[]
{
    Instance,
    "Thruster3D"
}, SendMessageOptions.DontRequireReceiver);
PreviousRun MethodNextNew Voxel Item

Last updated 1 year ago

Was this helpful?