Skip to main content

VisibilityData

A class in Root.Township, Alta.Scrapper.Data.

A hashed scrapper asset holding one on or off value for mesh renderers. A Visibility component applies it and syncs it by hash.

Constructors​

MemberWhat it is
VisibilityData()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private bool enabledBacking field for Enabled.

Properties​

MemberWhat it is
bool Enabled { get; }Whether the renderers should be shown.

Methods​

MemberWhat it is
void SaveData(bool enabled)Sets the stored enabled value.

Used in​

Members of other types that take, return or hold a VisibilityData: