C# Class DistanceCulling, Hellbound

Distance culling. This scirpt culls certain properties, depending on the scirpts settings, when the player is futher away than m_CullDistance. Used to gain performance on the graveyard scene primarily. !!!!!IMPORTANT!!!!! This script can only be used on objects that do not change child hierarcy layout Created by Simon Jonasson
Inheritance: MonoBehaviour
ファイルを表示 Open project: Backman/Hellbound

Public Properties

Property Type Description
m_CullDistance int

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
activateChildObjects ( ) : void
activateChildRenderers ( ) : void
deactivateChildObjects ( ) : void
deactivateChildRenderers ( ) : void
loadChildResources ( ) : void

Private Methods

Method Description
checkDist ( ) : IEnumerator

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

activateChildObjects() public method

public activateChildObjects ( ) : void
return void

activateChildRenderers() public method

public activateChildRenderers ( ) : void
return void

deactivateChildObjects() public method

public deactivateChildObjects ( ) : void
return void

deactivateChildRenderers() public method

public deactivateChildRenderers ( ) : void
return void

loadChildResources() public method

public loadChildResources ( ) : void
return void

Property Details

m_CullDistance public_oe property

public int m_CullDistance
return int