Class Capybara
A wrapper class for AdminToys.CapybaraToy.
public class Capybara : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<CapybaraToy>
- Inheritance
-
Capybara
- Implements
-
IWrapper<CapybaraToy>
- Inherited Members
- Extension Methods
Properties
Base
Gets the base AdminToys.CapybaraToy.
public CapybaraToy Base { get; }
Property Value
- CapybaraToy
Collidable
Gets or sets a value indicating whether the capybara can be collided with.
public bool Collidable { get; set; }
Property Value
Prefab
Gets the prefab.
public static CapybaraToy Prefab { get; }
Property Value
- CapybaraToy
Methods
Create(Transform)
Creates a new Capybara based on a Transform.
public static Capybara Create(Transform transform)
Parameters
transformTransformThe transform to spawn at.
Returns
Create(Transform, Vector3?, Quaternion?, Vector3?, bool, bool)
Creates a new Capybara.
public static Capybara Create(Transform parent = null, Vector3? position = null, Quaternion? rotation = null, Vector3? scale = null, bool collidable = true, bool spawn = true)
Parameters
parentTransformThe transform to create this Capybara on.
positionVector3?The local position of the Capybara.
rotationQuaternion?The local rotation of the Capybara.
scaleVector3?The local scale of the Capybara.
collidableboolWhether the capybara has collision enabled.
spawnboolWhether the Capybara should be initially spawned.
Returns
Create(Vector3)
Creates a new Capybara at the specified position.
public static Capybara Create(Vector3 position)
Parameters
positionVector3The local position of the Capybara.
Returns
Create(Vector3, Quaternion)
Creates a new Capybara with a specific position and rotation.
public static Capybara Create(Vector3 position, Quaternion rotation)
Parameters
positionVector3The local position of the Capybara.
rotationQuaternionThe local rotation of the Capybara.