Uploaded July 2021 | Updated November 2026, 1 day ago
When working with the Unity editor it can be useful to animate the movement of a value from one place to the next. Unity provides a series of classes you can use in the editor to help accomplish that. These classes will linearly interpolate from their current value to the target value you've given them. This can be used to smoothly move the camera in your scene or take advantage of the animated `EditorLayout.BeginFadeGroup` in an intuitive way - a control that can collapse and expand on itself using the value of a float.
These classes have a variety of values.
* `speed`: This effects how quickly the AnimatedValue transitions to the `target` value.
* `target`: The target of that the AnimatedValue is transitioning towards.
* `value`: The current value of the object.
* `valueChanged`: This is an event handler that is invoked when the AnimatedValue is transitioning between values. This can be used to trigger Editor GUI Repaint's or react to the animation in other ways.
One example of using this in an editor is to initialize and add a listener to automatically `Repaint` during an update. Unity does not redraw the editor window on a consistent basis and needs to be "Repainted" in order for the updates to show. Interactions like moving the window or interacting with your mouse can trigger Repaints, but since we're trying to animate an object in our UI, subscribing to the `valueChanged` event allows us to ensure a smooth appearance.
```csharp
animatedField = new AnimBool(false);
animatedField.valueChanged.AddListener(Repaint);
```
The value of the `AnimBool` can be retrieved using the `animatedField.faded` property. This is a special property of animated boolean values that returns a floating point representation of the boolean animation. The value will be between 0 (`false`) and 1 (`true`).
These classes are part of the UnityEditor library and are not available in your compiled game. For that you'd need to implement a class that provides the functionality you need.
Browse the `UnityEditor.AnimatedValues` API:
- [`AnimBool`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimBool.html)
- [`AnimFloat`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimFloat.html)
- [`AnimQuaternion`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimQuaternion.html)
- [`AnimVector3`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimVector3.html)
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
When working with the Unity editor it can be useful to animate the movement of a value from one place to the next. Unity provides a series of classes you can use in the editor to help accomplish that. These classes will linearly interpolate from their current value to the target value you've given them. This can be used to smoothly move the camera in your scene or take advantage of the animated `EditorLayout.BeginFadeGroup` in an intuitive way - a control that can collapse and expand on itself using the value of a float.
These classes have a variety of values.
* `speed`: This effects how quickly the AnimatedValue transitions to the `target` value.
* `target`: The target of that the AnimatedValue is transitioning towards.
* `value`: The current value of the object.
* `valueChanged`: This is an event handler that is invoked when the AnimatedValue is transitioning between values. This can be used to trigger Editor GUI Repaint's or react to the animation in other ways.
One example of using this in an editor is to initialize and add a listener to automatically `Repaint` during an update. Unity does not redraw the editor window on a consistent basis and needs to be "Repainted" in order for the updates to show. Interactions like moving the window or interacting with your mouse can trigger Repaints, but since we're trying to animate an object in our UI, subscribing to the `valueChanged` event allows us to ensure a smooth appearance.
```csharp
animatedField = new AnimBool(false);
animatedField.valueChanged.AddListener(Repaint);
```
The value of the `AnimBool` can be retrieved using the `animatedField.faded` property. This is a special property of animated boolean values that returns a floating point representation of the boolean animation. The value will be between 0 (`false`) and 1 (`true`).
These classes are part of the UnityEditor library and are not available in your compiled game. For that you'd need to implement a class that provides the functionality you need.
Browse the `UnityEditor.AnimatedValues` API:
- [`AnimBool`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimBool.html)
- [`AnimFloat`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimFloat.html)
- [`AnimQuaternion`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimQuaternion.html)
- [`AnimVector3`](docs.unity3d.com/ScriptReference/AnimatedValues.AnimVector3.html)
Join the World of Zero Discord Server: discord.gg/hU5Kq2u






![Creating our own Dockerized Mindustry Server
Lately Ive been playing Mindustry a factory based tower defense game that lets you build a factory, construct defenses and grow over time. Mindustry also includes its own self-hostable server. Were going to be taking a look at how we can use that self-hosted server file in order to create a reproducible containerized environment where we can run Mindustry games to play with friends.
To setup our Mindustry container image were going to create a `Dockerfile` with three layers:
```docker
FROM openjdk:25-slim
COPY server.jar /server.jar
CMD [ java, -jar, /server.jar ]
```
* `FROM`: defines which image to base our own image upon. Well be layering upon a slimmed down version of openjdks images.
* `COPY`: copies a file from our local machine - `server.jar` in this case - onto the container image so we can access it.
* `CMD`: defines the command to run to boot our server when we run it. For us this means using the packaged `jre` to run the `server.jar` we copied over into the container.
We build our Docker Image using this command:
```sh
docker build tag mindustry-server .
```
And then run that image using `docker run`:
```sh
docker run -it -p 6567:6567 -p 6567:6567/udp mindustry-server
```
Mindustry Server Hosting is documented on the Mindustry Wiki here: https://mindustrygame.github.io/wiki/servers/
We are basing our `Dockerfile` on the `openjdk` images. You can find them on Docker Hub here: https://hub.docker.com/_/openjdk
If youd like to see how we can apply similar ideas to hosting our own Minecraft Server, you can check out our containerized Minecraft server here: https://youtu.be/JtKIpGjtLzw
The current version of this container is available on GitHub at https://github.com/WorldOfZero/mindustry-server
***
Mindustry is available on Itch or Steam for desktop players or you can get a copy for your mobile phones:
* Itch.io: https://anuke.itch.io/mindustry
* Steam: https://store.steampowered.com/app/1127400/Mindustry/
* Google Play Store (Android): https://play.google.com/store/apps/details?id=io.anuke.mindustry&pli=1
* Apple App Store (iOS): https://apps.apple.com/us/app/mindustry/id1385258906?ls=1
(I dont have any association with this game, I just like playing it) Creating our own Dockerized Mindustry Server](https://i.ytimg.com/vi/m3mowhqXsXE/mqdefault.jpg)
![Importing .NET Libraries Into Unity 3D
You can import .NET Libraries into Unity in order to expose additional functionality in your game. In this video were going to build a basic demonstration of this feature by creating a brand new .NET Core library and importing it into Unity.
Once the library is imported we can invoke it and create objects defined by it just like any other code.
To create a new dotnet library with .NET Core you can use:
```csharp
dotnet new classlib name [your library name]
```
More about using the Unity Resources folder here on learn.unity.com: https://learn.unity.com/tutorial/assets-resources-and-assetbundles
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Importing .NET Libraries Into Unity 3D](https://i.ytimg.com/vi/m5Ls_NUChMk/mqdefault.jpg)


