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.
- Host: GitHub
- URL: https://github.com/xjine/unity_removeonbuilds
- Owner: XJINE
- License: bsd-3-clause
- Created: 2025-01-06T09:31:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-28T10:41:20.000Z (over 1 year ago)
- Last Synced: 2025-12-30T11:34:58.235Z (6 months ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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;
}
```