Skip to main content

EyePickup

A class in Root.Township, Alta.Customization.

Customization pickup for eyes. Shows the eye material coloured with the item's two colours.

Constructors​

MemberWhat it is
EyePickup()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private MeshRenderer meshRendererRenderer that shows the eye.

Methods​

MemberWhat it is
override CustomizationPickup Spawn(ICustomizationDefinition definition, CustomizationArguments[] arguments, Transform parent)Spawns the pickup, then gives its renderer a copy of the eye part's material coloured by the first argument.
1 private and internal method
MemberWhat it is
private void OnDestroy()Destroys the material made in Spawn.