Skip to content

OnDebrisSpawn

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnDebrisSpawn( DecayEntity instance, Vector3 localPos, Quaternion rot, bool dropToTerrain )
{
    Puts( "OnDebrisSpawn works!" );
}

Location

  • DecayEntity::SpawnDebris(UnityEngine.Vector3 localPos, UnityEngine.Quaternion rot, bool dropToTerrain)
csharp
private void SpawnDebris(Vector3 localPos, Quaternion rot, bool dropToTerrain)
{
	if (Interface.CallHook("OnDebrisSpawn", this, localPos, rot, dropToTerrain) != null)
	{
		return;
	}
	Vector3 vector = base.transform.TransformPoint(localPos);
	RaycastHit raycastHit;
//---

Released under the MIT License.