Improving Object References - LINQ for Unity Stream - Part 1 @WorldOfZeroDevelopment
Improving Object References - LINQ for Unity Stream - Part 1  @WorldOfZeroDevelopment
Uploaded June 2021 | Updated November 2026, 3 hours ago
LINQ for Unity is a new tool I'm building that allows you to run C# queries, typically LINQ, that you can then use to modify objects in your scenes easily. This allows you to select all of the Colors of your scenes Lights for example and easily edit them all or quickly change the positions of objects that meet a certain criteria.

One of the challenges the tool is currently facing is handling value types. These are common in Unity and occur when any primitive types (like `float`, `int`) or any structs (like `Vector3`, `Color`) are used. Instead of reference types which point to the location of data a value type will copy data when it is assigned. This means that if we try to select all of an objects positions that we will only retrieve the **values** of those positions. These values are read-only and if we do change them they will not effect the Transform they are a member of.

In this stream we will be designing, prototyping and building a solution to this value type problem using reflection and exploring other alternatives.

This is from a Live Stream I did on Twitch! You can follow me there to get notified the next time I go live: twitch.tv/worldofzerodev
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Improving Object References - LINQ for Unity Stream - Part 1Loading Levels From Textures in Unity 3DAn Intro to Json Serialization and Deserialization in UnityMy .STL Generator Breaks in Germany (and other countries), Lets Fix ThatLive Coding Handles and Custom Editors in UnityRotating Unity Gizmos - Quick TipUsing C#s nameof Expression - C# Quick TipUsing Generic Type Aliases in C#Writing Our Own Diffuse Lighting ShaderFocus and Follow Game Objects in Unitys Scene View - Quick TipA World Space Grid Snapped ShaderBuilding a Cloud Game w/ @MicrosoftReactor  - Day 2
World of Zero |

Improving Object References - LINQ for Unity Stream - Part 1

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER