TimeUtils.

Freeze(GameObject, bool, TimeUtils.RigidbodyFreezeType, bool, bool) Method

Summary

Freeze or Unfreeze given GameObject

Syntax

public static void Freeze(GameObject go, bool state, TimeUtils.RigidbodyFreezeType rigidbodyFreezeType, bool freezeAnimator, bool freezeParticles)

Parameters

Name Type Description
go GameObject The GameObjects
state bool The freeze state
rigidbodyFreezeType TimeUtils.RigidbodyFreezeType The type of freeze applied to rigidbodys
freezeAnimator bool Freeze Animator components
freezeParticles bool Freeze GameObject's ParticleSystems

Return Value

Type Description
void