An open API service indexing awesome lists of open source software.

https://github.com/xjine/unity_removeonbuilds

Remove some components or objects when building the scene.
https://github.com/xjine/unity_removeonbuilds

assets unity

Last synced: 2 months ago
JSON representation

Remove some components or objects when building the scene.

Awesome Lists containing this project

README

          

# Unity_RemoveOnBuilds

Remove some components or objects when building the scene.

## Importing

You can use Package Manager or import it directly.

```
https://github.com/XJINE/Unity_RemoveOnBuilds.git?path=Assets/Packages/RemoveOnBuilds
```

## How to Use

Inherit the following classes and override their properties.

```csharp
public abstract class RemoveOnBuild
{
protected virtual bool RemoveInEditorApplication { get; } = false;
protected virtual bool IgnoreDevelopmentBuild { get; } = false;
}

public abstract class RemoveComponentsOnBuild : RemoveOnBuild
{
protected virtual bool RemoveEmptyParentObject { get; } = true;
}

public abstract class RemoveTaggedObjectsOnBuild : RemoveOnBuild
{
protected virtual string Tag { get; } = string.Empty;
}
```