id
stringlengths
15
22
source
stringclasses
2 values
category
stringclasses
12 values
instruction
stringlengths
22
180
response
stringlengths
100
46.1k
system
stringclasses
5 values
local_sr_b739bb3713ac
unity_docs
editor
What is `Device.SystemInfo.supportsInstancing` in Unity? Explain its purpose and usage.
SystemInfo.supportsInstancing public static bool supportsInstancing ; Description This has the same functionality as SystemInfo.supportsInstancing and also mimics platform-specific behavior in the Unity Editor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2ebb527eb3ca
unity_docs
rendering
What is `Rendering.GraphicsSettings.lightProbeOutsideHullStrategy` in Unity? Explain its purpose and usage.
GraphicsSettings.lightProbeOutsideHullStrategy public static Rendering.LightProbeOutsideHullStrategy lightProbeOutsideHullStrategy ; Description Defines the way Unity chooses a probe to light a Renderer that is lit by Light Probes but positioned outside the bounds of the Light Probe tetrahedral hull. When a R...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f018496e1b54
unity_docs
rendering
Show me a Unity code example for 'Ambient light shader example in the Built-In Render Pipeline'.
The example above does not take any ambient lighting or light probes into account. Let’s fix this! It turns out we can do this by adding just a single line of code. Both ambient and light probe data is passed to shaders in Spherical Harmonics form, and ShadeSH9 function from UnityCG.cginc include file does all the work...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7497b06724e8
unity_docs
rendering
Explain 'Shader languages reference' in Unity.
Reference for ShaderLab , and High Level Shader Language (HLSL) in Unity. Page Description ShaderLab language reference Reference for ShaderLab. HLSL semantics reference Reference for supported High-Level Shader Language (HLSL) semantics in Unity. HLSL pragma directives reference Reference for HLSL pragma directives in...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d0ebe066f1fb
unity_docs
rendering
Show me a Unity C# example demonstrating `Texture2D.SetPixel`.
Alpha8 ARGB32 ARGB4444 BGRA32 R16 R16_SIGNED R8 R8_SIGNED RFloat RG16 RG16_SIGNED RG32 RG32_SIGNED RGB24 RGB24_SIGNED RGB48 RGB48_SIGNED RGB565 RGB9e5Float RGBA32 RGBA32_SIGNED RGBA4444 RGBA64 RGBA64_SIGNED RGBAFloat RGBAHalf RGFloat RGHalf RHalf For all other formats, Unity ignores SetPix...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7467ab95ab33
unity_docs
performance
What is `Unity.Profiling.LowLevel.Unsafe.ProfilerMarkerData` in Unity? Explain its purpose and usage.
ProfilerMarkerData struct in Unity.Profiling.LowLevel.Unsafe / Implemented in: UnityEngine.CoreModule Description Describes Profiler metadata parameter that can be associated with a sample. Used with ProfilerUnsafeUtility.BeginSampleWithMetadata method. The Type value defines the data type Ptr points to. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_17f326c32d54
unity_docs
math
In Unity's 'Create a property visitor with low-level APIs', what is 'Create data and utility classes' and how does it work?
Create the same Data and DebugUtilities classes as in the Create a property visitor with the PropertyVisitor class example. Modify the DebugUtilities class to use the low-level visitor instead of the PropertyVisitor -derived visitor as follows: ```csharp public static class DebugUtilities { private static readonly Low...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_24156eae0c17
unity_docs
scripting
What is `PlayerSettings.suppressCommonWarnings` in Unity? Explain its purpose and usage.
PlayerSettings.suppressCommonWarnings public static bool suppressCommonWarnings ; Description Suppresses common C# warnings. This property suppresses these C# warnings: CS0169 , CS0649 , CS0282 , CS1701 , and CS1702 . Additional resources: AdditionalCompilerArguments .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_593b3c31e7d8
unity_docs
rendering
What is `Mesh.GetBlendShapeBufferRange` in Unity? Explain its purpose and usage.
Mesh.GetBlendShapeBufferRange Declaration public BlendShapeBufferRange GetBlendShapeBufferRange (int blendShapeIndex ); Parameters Parameter Description blendShapeIndex Which blend shape to locate the data for. Returns BlendShapeBufferRange A struct that describes the start and end index of the data f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_560ce81799e0
unity_docs
scripting
Explain 'Property visitors' in Unity.
Property visitors define the logic for visiting the property bag of a given type to perform operations on its properties. If a type has been instrumented to expose its properties through a property bag, then this allows you to create additional functionality for it without further modifying the type directly. You can c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_226772c2d97b
unity_docs
scripting
Show me a Unity C# example demonstrating `Android.AndroidGame.Automatic.SetGameState`.
droidGameState.GamePlayInterruptible or AndroidGameState.GamePlayUninterruptible during the gameplay. Once set, the mode remains unchanged until you call this method again. However, if the game is interrupted by a full-screen video or a full-screen ad, the mode automatically changes to AndroidGameState.Content . W...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_144cc3ec3e1e
unity_docs
editor
Show me a Unity C# example demonstrating `EditorApplication.hierarchyChanged`.
s, but rather during the next update of the editor application. Actions taken with objects that have HideFlags.HideInHierarchy set will not cause this event to be raised, but changing Object.hideFlags will. The following example script logs the number of objects to the console whenever the hierarchy changes. Copy i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3efee8219a2d
unity_docs
math
What is `Experimental.GraphView.Placemat.ComputeElementBounds` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Placemat.ComputeElementBounds Declaration public static bool ComputeElementBounds (ref Rect pos , List<GraphElement> elements , Experimental.GraphView.Placemat.MinSizePolicy ensureMinSize ); Parameters Parameter Descr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_52f80f99834d
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetSourcesBuildPhaseByTarget`.
tSourcesBuildPhaseByTarget Declaration public string GetSourcesBuildPhaseByTarget (string targetGuid ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by TargetGuidByName . Returns string Returns the GUID of the existing phase or null if it does not exist....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0c83e07347db
unity_docs
rendering
Show me a Unity C# example demonstrating `Rendering.RenderTextureSubElement.Stencil`.
you can use sampling. When using MSAA RenderTextures, you need to define the Stencil Texture using the equivalent MS Texture types. You cannot bind the stencil buffer as a RWTexture. Below is an example Unlit shader that reads the stencil information from a RenderTexture with stencilFormat R8_UInt and writes it as co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_543294288be8
unity_docs
editor
What is `VersionControl.Provider.LockIsValid` in Unity? Explain its purpose and usage.
Provider.LockIsValid Declaration public static bool LockIsValid ( VersionControl.AssetList assets ); Parameters Parameter Description assets List of assets to test. Description Returns true if the Provider.Lock task can be executed on one or more assets from the given asset list. ```csharp using System...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7fb0d4ef2afa
unity_docs
editor
Show me a Unity C# example demonstrating `UIElements.DropdownMenu.InsertSeparator`.
ration public void InsertSeparator (string subMenuPath , int atIndex ); Parameters Parameter Description subMenuPath The submenu path to add the separator to. Path components are delimited by forward slashes ('/'). atIndex The index to insert the separator at. Description Adds a separator line in the men...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_17fafaf037b2
unity_docs
scripting
Show me a Unity C# example demonstrating `Networking.DownloadHandlerFile.removeFileOnAbort`.
DownloadHandlerFile.removeFileOnAbort public bool removeFileOnAbort ; Description Should the created file be removed if download is aborted (manually or due to an error). Default: false. ```csharp using System.Collections; using System.IO; using UnityEngine; using UnityEngine.Networking;public class DownloadHan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_06140af31f5e
unity_docs
scripting
Explain 'Runtime data binding examples' in Unity.
This section provides examples of how to create runtime data bindings in UI Builder. Topic Description Get started with runtime binding Learn the basics of runtime binding from an example. Bind to multiple properties Learn how to bind to multiple properties from an example. Create a runtime binding with a type converte...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aa524f8eeef1
unity_docs
scripting
Show me a Unity C# example demonstrating `Hash128.ctor`.
Parameters Parameter Description u32_0 First 32 bits of hash value. u32_1 Second 32 bits of hash value. u32_2 Third 32 bits of hash value. u32_3 Fourth 32 bits of hash value. u64_0 First 64 bits of hash value. u64_1 Second 64 bits of hash value. Description Directly initialize a Hash128 with a 128-bit v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7014cb16ce48
unity_docs
scripting
What is `WSA.Application.RunningOnUIThread` in Unity? Explain its purpose and usage.
Application.RunningOnUIThread Declaration public static bool RunningOnUIThread (); Description Returns true if you're running on UI thread. More information on UI and application threads can be found here .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_216f9baa86ed
github
scripting
Write a Unity C# MonoBehaviour script called Health
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; namespace PlainSaveLoad { public class Health : MonoBehaviour { public int maxHealth; public int currentHealth; private void Update() { if (currentHealth < 0) { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_25040d242e36
unity_docs
performance
What is `ProfilerWindow.selectedFrameIndex` in Unity? Explain its purpose and usage.
ProfilerWindow.selectedFrameIndex public long selectedFrameIndex ; Description The zero-based index of the frame currently selected in the Profiler Window. To change the currently selected frame in the Profiler window, set this index to any value between and including ProfilerWindow.firstAvailableFrameIndex a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e5e8f21bb903
unity_docs
rendering
Show me a Unity C# example demonstrating `ParticleSystem.RotationBySpeedModule.yMultiplier`.
ParticleSystem.RotationBySpeedModule.yMultiplier public float yMultiplier ; Description Speed multiplier along the y-axis. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall speed multiplier. ```csharp using UnityEngine; using System.Collections;[R...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4911b361303f
unity_docs
physics
Give me an overview of the `PhysicsShapeType2D` class in Unity.
PhysicsShapeType2D enumeration Description Options for indicate which primitive shape type is used to interpret geometry contained within a PhysicsShape2D object. Additional resources: PhysicsShape2D.shapeType . Properties Property Description Circle Use a circle shape to interpret the PhysicsShape2D geomet...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5038f793a0b4
unity_docs
scripting
Show me a Unity C# example demonstrating `Experimental.Audio.AudioSampleProvider.SampleFramesEventNativeFunction`.
ampleProvider.id . sampleFrameCount Number of sample frames available or overflowed, depending on event type. Description Type that represents the native function pointer for handling sample frame events. Sample frames events are AudioSampleProvider.sampleFramesAvailable and AudioSampleProvider.sampleFramesOver...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c00403266eae
unity_docs
animation
What is `Animations.AnimationHumanStream.SetMuscle` in Unity? Explain its purpose and usage.
AnimationHumanStream.SetMuscle Declaration public void SetMuscle ( Animations.MuscleHandle muscle , float value ); Parameters Parameter Description muscle The Muscle that is queried. value The muscle value. Description Sets the muscle value. Additional resources: MuscleHandle .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0441b48a3355
unity_docs
rendering
What is `Rendering.VirtualTexturing.Resolver.UpdateSize` in Unity? Explain its purpose and usage.
Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future. Resolver.UpdateSize Declaration public void UpdateSize (int width , int height ); Parameters Parameter Description width Width of the texture passed in during Proces...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5d2d48040577
unity_docs
editor
What is `TextClipping` in Unity? Explain its purpose and usage.
TextClipping enumeration Description Different methods for how the GUI system handles text being too large to fit the rectangle allocated. Properties Property Description Overflow Text flows freely outside the element. Clip Text gets clipped to be inside the element. Ellipsis Text gets clipped to be inside th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b2b84849bd24
unity_docs
rendering
What is `Rendering.VertexAttribute.TexCoord0` in Unity? Explain its purpose and usage.
VertexAttribute.TexCoord0 Description Primary texture coordinate (UV). UVs usually use Vector2 format. Vector2 uses two 32-bit floats; 8 bytes in total. This vertex attribute maps to the TEXCOORD0 semantic in HLSL. This UV channel is also commonly called "UV0". It corresponds to Mesh.uv . Additional resources:...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7e996513b6e3
unity_docs
ui
What is `ParticleSystem.MainModule.startDelayMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.MainModule.startDelayMultiplier public float startDelayMultiplier ; Description A multiplier for ParticleSystem.MainModule.startDelay in seconds. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall start delay multiplier. ```csharp ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_57e74712c609
unity_docs
editor
Show me a Unity C# example demonstrating `SerializedProperty.enumNames`.
SerializedProperty.enumNames public string[] enumNames ; Description Names of enumeration of an enum property. Additional resources: enumDisplayNames , propertyType , SerializedPropertyType.Enum , enumValueIndex . ```csharp using UnityEditor; using UnityEngine;public enum ExampleEnum { ValueFirst = 1, Va...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0329864d8ccb
unity_docs
input
What is `UIElements.Experimental.PointerDownLinkTagEvent` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. PointerDownLinkTagEvent class in UnityEngine.UIElements.Experimental / Inherits from: UIElements.PointerEventBase_1 / Implemented in: UnityEngine.UIElementsModule Description This event is sent when a pointer is pressed on...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_2c99b972d2cc_doc_5
github
scripting
What does `IsMagicLeapXREnabled` do in this Unity script? Explain its purpose and signature.
Checks if Magic Leap XR is enabled Signature: ```csharp public static bool IsMagicLeapXREnabled() ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_d1a5f0bdc9e4
unity_docs
audio
What is `Experimental.Audio.AudioSampleProvider.ConsumeSampleFrames` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. AudioSampleProvider.ConsumeSampleFrames Declaration public uint ConsumeSampleFrames (NativeArray<float> sampleFrames ); Parameters Parameter Description sampleFrames Buffer where the consumed samples will be transferred. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0167fa4a1393
unity_docs
input
Show me a Unity code example for 'IntegerField'.
add validation functions to ensure that the entered data meets certain requirements. Note : To align an IntegerField with other fields in an Inspector window, simply apply the.unity-base-field__aligned USS class to it. For more information, refer to BaseField . ## Create an IntegerField You can create an IntegerField...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9886a17270ba
unity_docs
rendering
What is `Camera.rect` in Unity? Explain its purpose and usage.
Camera.rect public Rect rect ; Description Where on the screen is the camera rendered in normalized coordinates. In rect , the bottom-left of the screen is (0,0) and the top-right of the screen is (1,1). ```csharp using UnityEngine;// Change the width of the viewport each time space key is pressedpublic cl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fc225154ac9b
unity_docs
scripting
In Unity's 'Set up your Render Texture to display video', what is 'Set a Render Texture as your Video Player’s target' and how does it work?
To have your video play on your Render Texture, you need to set up your Video Player component to target your Render Texture: Click on the GameObject that contains the Video Player component. The Inspector window opens. Set Render Mode to Render Texture . Assign your Render Texture to Target Texture . Your Video Player...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a9d80fdc8543
unity_docs
scripting
What is `Tools.rectBlueprintMode` in Unity? Explain its purpose and usage.
Tools.rectBlueprintMode public static bool rectBlueprintMode ; Description Is the rect handle in blueprint mode? In blueprint mode the rect handle for RectTransforms ignored local rotation and scale. This can make it easier to work with layouts for RectTransforms.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9ffb3f4099c1
unity_docs
scripting
What is `Unity.IntegerTime.DiscreteTime.operator_add` in Unity? Explain its purpose and usage.
DiscreteTime.operator + public static Unity.IntegerTime.DiscreteTime operator + ( Unity.IntegerTime.DiscreteTime lhs , Unity.IntegerTime.DiscreteTime rhs ); Description Returns the addition of two time values.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f8924fcea5bf
unity_docs
rendering
What is `MipmapLimitDescriptor` in Unity? Explain its purpose and usage.
MipmapLimitDescriptor struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Determines whether a texture uses a mipmap limit, and which mipmap limit the texture uses, when you create the texture using a constructor. Properties Property Description groupName The TextureMipmapLimitGroup to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_93c6609ae82f
unity_docs
xr
Explain 'Developing for Android' in Unity.
Develop Unity applications for the Android platform. Refer to the following key topics to get information on the user input, asset management, and debugging that is useful in Android development. Topic Description Android mobile scripting Contains information about scripting for Android. Input for Android devices Expla...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_29d5af8b4a4a
unity_docs
scripting
What is `Search.ISearchView.IsPicker` in Unity? Explain its purpose and usage.
ISearchView.IsPicker Declaration public bool IsPicker (); Returns bool Returns true if the current view is a search window. Description Indicates if the search view is being used as an advanced search picker. See SearchService.ShowPicker .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c18a2cfed2d0
unity_docs
physics
Show me a Unity C# example demonstrating `RaycastHit2D.centroid`.
psules or boxes, the centroid is the center of the respective shape used when it is in contact with the returned point . For example, a circle will always have its centroid be its radius away from the returned point . The centroid helps identify the position the shape would be at for it to come into contact at ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_478bc5b6b349
unity_docs
physics
What is `Application.quitting` in Unity? Explain its purpose and usage.
Application.quitting Description Unity raises this event when the Player application is quitting. Add an event handler to this event to receive a notification that the application is quitting. Notes : The Application.quitting event is raised when the quitting process cannot be cancelled. Examples of when this eve...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dba159e14898
unity_docs
input
What is `XR.InputFeatureUsage_1.ctor` in Unity? Explain its purpose and usage.
InputFeatureUsage<T0> Constructor Declaration public InputFeatureUsage<T0> (string usageName ); Parameters Parameter Description usageName The name of the feature usage to query for. Description Construct a usage from a usage name.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e3760bd0100
unity_docs
rendering
What is `LightmapData.lightmapDir` in Unity? Explain its purpose and usage.
LightmapData.lightmapDir public Texture2D lightmapDir ; Description Lightmap storing dominant direction of incoming light. Additional resources: LightmapSettings , Renderer.lightmapIndex .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3515f4818f24
unity_docs
ui
What is `UIElements.PickingMode` in Unity? Explain its purpose and usage.
PickingMode enumeration Description Describes the picking behavior. Properties Property Description Position Picking enabled. Default Value. Performs picking based on the position rectangle. In the VisualElement tree hierarchy, the picking process works using a similar logic as the rendering but in revers...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6d219f685d5c
unity_docs
scripting
Explain 'Create a property visitor with the PropertyVisitor class' in Unity.
This example demonstrates how to use the PropertyVisitor base class to create a property visitor. For an equivalent example that uses the IPropertyBagVisitor and IPropertyVisitor interfaces, refer to Use low-level APIs to create a property visitor . ## Create data and utility classes Create a simple data class and a ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e77991345506
unity_docs
rendering
Show me a Unity C# example demonstrating `Texture2D.LoadRawTextureData`.
xture is 16 × 8 pixels and RGBA32 format with no mipmaps, the array must be a size of 512 bytes (16 × 8 × 4 bytes). You can use the experimental GraphicsFormatUtility.ComputeMipmapSize API to calculate the size of a mipmap level. The array must start with mipmap level 0. Additional resources: SetPixels , SetPixels3...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ec5a8e44614
unity_docs
scripting
What is `Profiling.Profiler.enableBinaryLog` in Unity? Explain its purpose and usage.
Profiler.enableBinaryLog public static bool enableBinaryLog ; Description Enables the logging of profiling data to a file. When enabled, the Unity player saves profiling data to the file specified in the Profiler.logFile file. The player automatically assigns the file extension, “.raw” to this log file. You c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_78cfbefe9923
unity_docs
rendering
Explain 'Cubemap texture Import Settings window reference' in Unity.
You can further refine Cubemap shape textures with the following properties: Here’s your fixed Markdown table with properly aligned rows: Property Sub-property Description Mapping - Use Mapping to specify how the Texture is projected onto your GameObject . This is set to Auto by default. Mapping Auto Unity tries to cre...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9ac99e800741
unity_docs
scripting
Give me an overview of the `ValidationLevel` class in Unity.
ValidationLevel enumeration Description Enumeration specifying a validation level. Additional resources: Debug.IsValidationLevelEnabled Properties Property Description None No validation. Low Fast validation. Medium Moderate validation. High Thorough but slow validation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e8fdba13770
unity_docs
physics
What is `JointProjectionMode` in Unity? Explain its purpose and usage.
JointProjectionMode enumeration Description Determines how to snap physics joints back to its constrained position when it drifts off too much. Additional resources: ConfigurableJoint . Properties Property Description None Don't snap at all. PositionAndRotation Snap both position and rotation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bb78ce807dfe
unity_docs
scripting
What is `VideoClipImporter` in Unity? Explain its purpose and usage.
VideoClipImporter class in UnityEditor / Inherits from: AssetImporter Description VideoClipImporter lets you modify VideoClip import settings from Editor scripts. See the Movie File Format Support Notes section in the VideoPlayer class documentation for supported movie file formats and encoding guideline...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aaceca0934cf
unity_docs
animation
What is `Animations.AnimatorLayerBlendingMode` in Unity? Explain its purpose and usage.
AnimatorLayerBlendingMode enumeration Description Specifies how the layer is blended with the previous layers. Properties Property Description Override Animations overrides to the previous layers. Additive Animations are added to the previous layers.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_55ad304b1a50
unity_docs
rendering
Explain 'Introduction to lightmaps and baking' in Unity.
Lightmapping is the process of pre-calculating the brightness of surfaces in a Scene , and storing the result in a Texture called a lightmap for later use. Lightmaps can include both direct and indirect light. This lighting texture can be used together with surface information like color (albedo) and relief (normals) b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d4f600edae45
unity_docs
scripting
In Unity's 'Awaitable completion and continuation', what is '.NET Task continuations' and how does it work?
Information about the state code was in when it began awaiting is referred to as the synchronization context. The .NET platform provides the SynchronizationContext class for capturing this type of information. Task continuations run in the synchronization context from which the asynchronous method was called, or throug...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6f3028192a49
unity_docs
rendering
What is `Rendering.ShaderCompilerPlatform` in Unity? Explain its purpose and usage.
ShaderCompilerPlatform enumeration Description Shader compiler used to generate player data shader variants. In Unity, shader programs are written in a variant of HLSL language. Each platform supports one or multiple graphics APIs. For example, Vulkan and Direct3D 12 are both supported in Windows. When bu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec7970cb75b0
unity_docs
rendering
What is `Rendering.VirtualTexturing.Streaming.RequestRegion` in Unity? Explain its purpose and usage.
Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future. Streaming.RequestRegion Declaration public static void RequestRegion ( Material mat , int stackNameId , Rect r , int mipMap , int numMips ); Parameters Parameter ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a5f4b6ef802a
unity_docs
scripting
Show me a Unity C# example demonstrating `Unity.IO.LowLevel.Unsafe.FileHandle.Close`.
synchronously closes the file referenced by this FileHandle and disposes the FileHandle instance. Always close FileHandles when done to avoid memory leaks and needlessly locking files. FileHandles that fail to open must still be closed. Once closed, the FileHandle instance is disposed and becomes invalid. To check for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bc66510ce728
unity_docs
rendering
What is `XR.XRDisplaySubsystem.XRRenderPass.motionVectorRenderTargetDesc` in Unity? Explain its purpose and usage.
XRDisplaySubsystem.XRRenderPass.motionVectorRenderTargetDesc public RenderTextureDescriptor motionVectorRenderTargetDesc ; Description The render texture description for the target texture for the motion-vector render pass.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3318aa7bbf47
unity_docs
scripting
What is `CullingGroupEvent` in Unity? Explain its purpose and usage.
CullingGroupEvent struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Provides information about the current and previous states of one sphere in a CullingGroup. Additional resources: CullingGroup.onStateChanged . Properties Property Description currentDistance The current distance b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8ead9f75edcc
unity_docs
rendering
In Unity's 'Set up a panoramic video', what is 'Render an equirectangular video to a render texture' and how does it work?
To render an equirectangular video to a render texture , you must change the default behavior of the video player. To do this, use the following steps: Go to Assets > Create > Rendering > Render Texture . Click on the new render texture. The Inspector window shows. Set Size to match your video’s dimensions. To check th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0b93d760d79d
unity_docs
input
What is `UIElements.MouseCaptureController` in Unity? Explain its purpose and usage.
MouseCaptureController class in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Description Class that manages capturing mouse events. Static Methods Method Description CaptureMouse Assigns an event handler to capture mouse events. HasMouseCapture Checks if the event handler i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e6ed46abe71
unity_docs
scripting
Show me a Unity C# example demonstrating `Keyframe.inWeight`.
Keyframe.inWeight public float inWeight ; Description Sets the incoming weight for this key. The incoming weight affects the slope of the curve from the previous key to this key. The weight is a value between 0 and 1. Set weightedMode to WeightedMode.In or WeightedMode.Both to include weight when calculat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_89cb53e6620d
unity_docs
rendering
What is `LightTransport.PostProcessing.ReferenceProbePostProcessor.ScaleSphericalHarmonicsL2` in Unity? Explain its purpose and usage.
ReferenceProbePostProcessor.ScaleSphericalHarmonicsL2 Declaration public bool ScaleSphericalHarmonicsL2 ( LightTransport.IDeviceContext context , BufferSlice<SphericalHarmonicsL2> shIn , BufferSlice<SphericalHarmonicsL2> shOut , int probeCount , float scale ); Parameters Parameter Description context De...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_43aa6b3c5219
unity_docs
scripting
What is `TerrainChangedFlags.Heightmap` in Unity? Explain its purpose and usage.
TerrainChangedFlags.Heightmap Description Indicates a change to the heightmap data. This flag is set when heightmap data has been changed, for instance after TerrainData.SetHeights calls. Note that TerrainData.SetHeightsDelayLOD doesn't set this flag, even though the heightmap data is updated. See DelayedHeigh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_5ffd0c9da100
github
scripting
Write a Unity Editor script for Type Ref Dropdown Attribute Drawer
```csharp using System; using System.Linq; using UnityEditor; using UnityEngine; namespace FieldSearch.Attributes.Drawers { /// <summary> /// Drawer for <see cref="TypeRefDropdownAttribute"/> /// </summary> [CustomPropertyDrawer(typeof(TypeRefDropdownAttribute))] public class TypeRefDropdownAttrib...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_ea7d2278fb08
unity_docs
performance
What is `Profiling.RawFrameDataView.GetSampleStartTimeNs` in Unity? Explain its purpose and usage.
RawFrameDataView.GetSampleStartTimeNs Declaration public ulong GetSampleStartTimeNs (int sampleIndex ); Parameters Parameter Description sampleIndex Index of the Profiler sample. Returns ulong Returns sample start time in nanoseconds. Description Gets the start time of the sample. The amount of time ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ada6486c47c1
unity_docs
rendering
What is `Shader.globalRenderPipeline` in Unity? Explain its purpose and usage.
Shader.globalRenderPipeline public static string globalRenderPipeline ; Description Render pipeline currently in use. This value is used to filter sub shaders based on the "RenderPipeline" tag. If a sub shader uses the "RenderPipeline" tag, it is used if and only if globalRenderPipeline matches the value compl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9be366b4a2b3
unity_docs
scripting
Explain 'Create USS variables' in Unity.
You can create a USS variable and use it in other USS properties. When you update a USS variable, all of the USS properties that use that variable update. You can also specify default values for USS variables. ## Create and use USS variables To create a USS variable, prefix its name with a double-hyphen ( -- ). ``` -...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f0b381a31f7
unity_docs
scripting
What is `RectTransform.Edge` in Unity? Explain its purpose and usage.
Edge enumeration Description Enum used to specify one edge of a rectangle. Properties Property Description Left The left edge. Right The right edge. Top The top edge. Bottom The bottom edge.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_729c14f8235c
unity_docs
editor
What are the parameters of `AssetImporter.AddRemap` in Unity?
Description Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type. Apply changes by writing the metadata and reimporting the Asset. Instances of the Asset automatically use the mapped object once you have reimported the Asset. If the type of the external asset does not match...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_897658eb9cd8
unity_docs
rendering
What is `Camera.overrideSceneCullingMask` in Unity? Explain its purpose and usage.
Camera.overrideSceneCullingMask public ulong overrideSceneCullingMask ; Description Sets the culling mask used to determine which objects from which Scenes to draw. See EditorSceneManager.SetSceneCullingMask .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d3258cde8d5
unity_docs
scripting
What is `Device.Application.cloudProjectId` in Unity? Explain its purpose and usage.
Application.cloudProjectId public static string cloudProjectId ; Description This has the same functionality as Application.cloudProjectId . At the moment, the Device Simulator doesn't support simulation of this property.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_882c8178cc6a
unity_docs
scripting
What is `DeviceType.Desktop` in Unity? Explain its purpose and usage.
DeviceType.Desktop Description Desktop or laptop computer. ```csharp //Attach this script to a GameObject //This script checks what device type the Application is running on and outputs this to the consoleusing UnityEngine;public class DeviceTypeExample : MonoBehaviour { //This is the Text for the Label at the top...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_15d3a25bd9e8
unity_docs
scripting
What is `Android.AndroidGame.GameMode` in Unity? Explain its purpose and usage.
AndroidGame.GameMode public static Android.AndroidGameMode GameMode ; Description Calls getGameMode() in the Android application to retrieve the user selected game mode for the application and returns AndroidGameMode . Requires API level 31 (Android 12). (Read Only) When target device does not support the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_96bae3038489
unity_docs
ui
Explain 'Raise or Lower Terrain' in Unity.
Use the Raise or Lower Terrain tool to alter the height of a Terrain tile. To access the tool, click the Paint Terrain icon, and in the drop-down menu, select Raise or Lower Terrain . Select a brush from the palette, then click and drag the cursor over a Terrain object to raise its height. Click and drag while holding ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4bf4eddfa1c4
unity_docs
rendering
Show me a Unity C# example demonstrating `AssetDatabase.FindAssetGUIDs`.
ample, glob:Editor will find all Editor folders in a project, glob:(Editor|Resources) will find all Editor and Resources folders in a project, glob:Editor/* will return all assets inside Editor folders in a project, while glob:Editor/** will return all assets within Editor folders recursively. Note: Searchi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4561e09b660b
unity_docs
scripting
Give me an overview of the `SceneVisibilityManager` class in Unity.
SceneVisibilityManager class in UnityEditor / Inherits from: ScriptableSingleton_1 Description Manages Scene Visibility in the editor. Public Methods Method Description AreAllDescendantsHidden Checks whether all the descendants of a GameObject are hidden. AreAllDescendantsVisible Checks whether all the desc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ce97b87c1e1
unity_docs
physics
What is `Joint2D.collideConnected` in Unity? Explain its purpose and usage.
Removed Joint2D.collideConnected Obsolete Joint2D.collideConnected has been deprecated. Use Joint2D.enableCollision instead. Upgrade to enableCollision public bool collideConnected ; Description Can the joint collide with the other Rigidbody2D object to which it is attached? Additional resources: Rigidbod...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3ea982bbc6d4
unity_docs
xr
Explain 'Apple visionOS XR Plugin' in Unity.
com.unity.xr.visionos ## Description Provides support for Apple visionOS XR features. This includes build post-processing code and the following subsystem implementations: - XRSessionSubsystem - XRDisplaySubsystem - XRInputSubsystem - XRMeshSubsystem - XRPlaneSubsystem - XRImageTrackingSubsystem - XRAnchorSubsystem -...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f69393033d81
unity_docs
rendering
Show me a Unity C# example demonstrating `Camera.ViewportToScreenPoint`.
orms position from viewport space into screen space. Viewport space is normalized and relative to the camera. The bottom-left of the camera is (0,0); the top-right is (1,1). The z position is in world units from the camera. Screen space is defined in pixels. The bottom-left of the screen is (0,0); the right-top is (...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1767fc70ba5e
unity_docs
scripting
What is `Experimental.GraphView.StackNode` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. StackNode class in UnityEditor.Experimental.GraphView / Inherits from: Experimental.GraphView.Node Implements interfaces: IDropTarget Description Use this class to customize StackNodes and to manage dragging GraphElements ov...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a7937dd97b2
unity_docs
rendering
What is `SystemInfo.supportsMultisampledTextures` in Unity? Explain its purpose and usage.
SystemInfo.supportsMultisampledTextures public static int supportsMultisampledTextures ; Description Returns a value of 1 or higher if multisampled textures are supported. (Read Only) The property returns a value of 1 or higher if multisampled textures are supported, or a value of 0 if they are not supported. A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8c7f78e2d0cf
unity_docs
xr
What is `XR.InputDevices.GetDevicesWithCharacteristics` in Unity? Explain its purpose and usage.
InputDevices.GetDevicesWithCharacteristics Declaration public static void GetDevicesWithCharacteristics ( XR.InputDeviceCharacteristics desiredCharacteristics , List<InputDevice> inputDevices ); Parameters Parameter Description desiredCharacteristics A bitwise combination of the characteristics you are loo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b95f216d11c4
unity_docs
rendering
What is `ComputeShader.GetKernelThreadGroupSizes` in Unity? Explain its purpose and usage.
ComputeShader.GetKernelThreadGroupSizes Declaration public void GetKernelThreadGroupSizes (int kernelIndex , out uint x , out uint y , out uint z ); Parameters Parameter Description kernelIndex Which kernel to query. A single compute shader asset can have multiple kernel entry points. x Thread group si...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b411038efbc1
unity_docs
rendering
What are the parameters of `AssetDatabase.Contains` in Unity?
Returns bool Returns true if the object, EntityID, or InstanceID corresponds to a file in the Assets folder. Otherwise, returns false. Description Checks whether a given object is an asset. ```csharp using UnityEditor; using UnityEngine;public class AssetDatabaseExamples : MonoBehaviour { [MenuItem("AssetDatabase/C...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_46192677864c
unity_docs
physics
What is `LowLevelPhysics.ImmediateTransform` in Unity? Explain its purpose and usage.
ImmediateTransform struct in UnityEngine.LowLevelPhysics / Implemented in: UnityEngine.PhysicsModule Description A transform, containing a position and rotation. Properties Property Description Position The world space position of the object. Rotation The world space rotation of the object.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bceaee1fc547
unity_docs
physics
Explain 'Apply interpolation to a Rigidbody' in Unity.
Interpolation provides a way to manage the appearance of jitter in the movement of your Rigidbody GameObjects at run time. Jitter can happen when the rate of physics simulation updates (determined by the Fixed Timestep ) is slower than the application’s frame rate. It is most noticeable if you have a Rigidbody with phy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_980c8fbb631d
unity_docs
physics
In Unity's 'Prepare a Mesh for Mesh colliders', what is 'Configure Mesh cooking' and how does it work?
To calculate collisions with a Mesh collider, the physics system needs to be able to access the Mesh’s geometry. “Mesh cooking” refers to the process of converting a 3D mesh from its original format (for example, FBX or OBJ) into a format that the physics system can read. The cooking process takes the raw Mesh data and...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ffd1d27a5c4e
unity_docs
math
What is `Tilemaps.Tilemap.FloodFill` in Unity? Explain its purpose and usage.
Tilemap.FloodFill Declaration public void FloodFill ( Vector3Int position , Tilemaps.TileBase tile ); Parameters Parameter Description position Start position of the flood fill on the Tilemap . tile Tile to place. Description Does a flood fill with the given Tile to place. on the Tilemap starti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_03f497ee1fc1
unity_docs
math
What is `AndroidJNIHelper.GetConstructorID` in Unity? Explain its purpose and usage.
AndroidJNIHelper.GetConstructorID Declaration public static IntPtr GetConstructorID (IntPtr javaClass ); Declaration public static IntPtr GetConstructorID (IntPtr javaClass , string signature ); Parameters Parameter Description javaClass Raw JNI Java class object (obtained by calling AndroidJNI.FindCla...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9390fd928d6
unity_docs
scripting
What is `UIElements.ConverterGroup.ctor` in Unity? Explain its purpose and usage.
ConverterGroup Constructor Declaration public ConverterGroup (string id , string displayName , string description ); Parameters Parameter Description id The group id. displayName The group display name. description The group description. Description Creates a ConverterGroup.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d7f7eb027f8d
unity_docs
rendering
What is `Experimental.GlobalIllumination.LightDataGI.cookieScale` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. LightDataGI.cookieScale public float cookieScale ; Description The uniform scale factor for downscaling cookies during lightmapping. Can be used as an optimization when full resolution cookies are not needed for indirect ligh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8e0e6f762530_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Control number of successive camera frames to skip while recording.This is very useful for GIF recording, which typically has a lower framerate appearance. Signature: ```csharp public int frameSkip; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
gh_02e8dd62f2b3
github
scripting
Write a Unity C# ScriptableObject for Ordered Dictionary New Entry Manager
```csharp // Copyright (c) Rotorz Limited. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root. using Rotorz.Games.UnityEditorExtensions; using System; using System.Linq; using UnityEditor; using UnityEngine; using Object = UnityEngine.Object; namespace Rotorz.Games.Collectio...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_2a03d655aea3
unity_docs
editor
What is `iOS.Xcode.PBXProject.GetShellScriptBuildPhaseForTarget` in Unity? Explain its purpose and usage.
PBXProject.GetShellScriptBuildPhaseForTarget Declaration public string GetShellScriptBuildPhaseForTarget (string targetGuid , string name , string shellPath , string shellScript ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by TargetGuidByName . name Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_181d8cc53d00
unity_docs
scripting
What is `StaticOcclusionCulling.GenerateInBackground` in Unity? Explain its purpose and usage.
StaticOcclusionCulling.GenerateInBackground Declaration public static bool GenerateInBackground (); Description Used to compute static occlusion culling data asynchronously. The memory limit (specified in bytes) is a hint to the PVS baking system about the likely memory requirements. Additional resources: Comp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.