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_6347e3426b54
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.MainModule.customSimulationSpace`.
ParticleSystem.MainModule.customSimulationSpace public Transform customSimulationSpace ; Description Simulate particles relative to a custom transform component. Additional resources: ParticleSystemSimulationSpace.Custom . ```csharp using System.Collections; using UnityEngine;[RequireComponent(typeof(Parti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2eb2a53594b6
unity_docs
editor
What are the parameters of `Editor.RenderStaticPreview` in Unity?
Returns Texture2D Generated texture or null. Description Override this method if you want to render a static preview. When overridden RenderStaticPreview can be used to render a list of assets converted into a single texture. This function will need user supplied source code tha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3aa0b55fcf22
unity_docs
ui
What is `GUI.DragWindow` in Unity? Explain its purpose and usage.
GUI.DragWindow Declaration public static void DragWindow ( Rect position ); Parameters Parameter Description position The part of the window that can be dragged. This is clipped to the actual window. Description Make a window draggable. Insert a call to this function inside your window code to make a win...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_997a06c5ecc9
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.AssetPathToGUID`.
still return GUIDs for assets that were deleted in the current session of the Unity Editor. For assets that do not exist, and were not deleted in the current Editor session, this method returns an empty string. If you need it to return an empty string for assets that were deleted in the current Editor session, pass the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ae3e9fc06ba7
unity_docs
scripting
What is `ParticleSystem.MainModule` in Unity? Explain its purpose and usage.
MainModule struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Script interface for the MainModule of a Particle System. Additional resources: ParticleSystem , ParticleSystem.main . Properties Property Description cullingMode Configure whether the Particle System will sti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bb6ab4e57afc
unity_docs
rendering
What is `Experimental.GlobalIllumination.RectangleLight.color` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. RectangleLight.color public Experimental.GlobalIllumination.LinearColor color ; Description The direct light color.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_893ba3d5c8f6
unity_docs
math
What is `Experimental.GraphView.GraphView.CalculateFrameTransform` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.CalculateFrameTransform Declaration public static void CalculateFrameTransform ( Rect rectToFit , Rect clientRect , int border , out Vector3 frameTranslation , out Vector3 frameScaling ); Parameters Para...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5a9767afde66
unity_docs
editor
What is `Device.SystemInfo.supportsMipStreaming` in Unity? Explain its purpose and usage.
SystemInfo.supportsMipStreaming public static bool supportsMipStreaming ; Description This has the same functionality as SystemInfo.supportsMipStreaming 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_2d4dabcfde11
unity_docs
scripting
What is `Experimental.GraphView.ShortcutHandler.UnregisterCallbacksFromTarget` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ShortcutHandler.UnregisterCallbacksFromTarget Declaration protected void UnregisterCallbacksFromTarget (); Description Called to unregister event callbacks from the target element.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75eaff403259
unity_docs
rendering
What is `Rendering.ShaderPropertyFlags.HDR` in Unity? Explain its purpose and usage.
ShaderPropertyFlags.HDR Description Signifies that values of this property contain High Dynamic Range (HDR) data. When this flag is set, the default Material Inspector displays a warning if you assign incompatible data in the Material. For example, if a Texture contains an alpha channel, which HDR Textures do not s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_94c7f66ce2a3
unity_docs
physics
What is `ClothSkinningCoefficient` in Unity? Explain its purpose and usage.
ClothSkinningCoefficient struct in UnityEngine / Implemented in: UnityEngine.ClothModule Description The ClothSkinningCoefficient struct is used to set up how a Cloth component is allowed to move with respect to the SkinnedMeshRenderer it is attached to. This is set using the Cloth.coefficients property o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8234a735a521
unity_docs
rendering
What is `Sprites.AtlasSettings` in Unity? Explain its purpose and usage.
AtlasSettings struct in UnityEditor.Sprites Description Describes the final atlas texture. Note that if not all Sprites can be fit to an area defined by maxWidth and maxHeight, multiple atlas pages will be generated. Properties Property Description allowsAlphaSplitting Marks this atlas so that it contains tex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_552e5c25266a
unity_docs
rendering
What is `Rendering.SearchType` in Unity? Explain its purpose and usage.
SearchType enumeration Description Describe how to use the path in ResourcePathsBaseAttribute . What is the loading method to use? It may vary regarding the resource location. There is also an extra way to find shader by their internal name. Properties Property Description ProjectPath Used for resources insid...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_629b0f3f53e8
unity_docs
xr
Explain 'Friends' in Unity.
com.unity.services.friends ## Description The Friends service allows you to boost player engagement by providing players with a social system that works well with other Unity services. With Friends, your players can send and receive friend requests, build and manage friends lists, and block and unblock other players....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1d3b37c8502c
unity_docs
scripting
Explain 'How Unity uses serialization' in Unity.
## Saving and loading Unity uses serialization to load and save scenes , Assets , and AssetBundles to and from your device’s memory. This includes data saved in your own scripting API objects such as MonoBehaviour components and ScriptableObjects . Many of the features in the Unity Editor are built on top of the core ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb266c2201de
unity_docs
scripting
What is `Video.VideoPlayer.pixelAspectRatioNumerator` in Unity? Explain its purpose and usage.
VideoPlayer.pixelAspectRatioNumerator public uint pixelAspectRatioNumerator ; Description Numerator of the pixel aspect ratio (num:den) for the VideoClip or the URL. (Read Only) For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0b3904b64465
unity_docs
scripting
What is `Experimental.GraphView.GraphView.SerializeGraphElements` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.SerializeGraphElements Declaration protected string SerializeGraphElements (IEnumerable<GraphElement> elements ); Parameters Parameter Description elements Elements to serialize. Returns string Serialized da...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_316f478e8cd6
unity_docs
scripting
What is `PropertyAttribute` in Unity? Explain its purpose and usage.
PropertyAttribute class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Base class to derive custom property attributes from. Use this to create custom attributes for script variables. A custom attributes can be hooked up with a custom PropertyDrawer class to control how a script variable ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4893c9f0b45e
unity_docs
scripting
What is `Experimental.Rendering.ScriptableBakedReflectionSystem.stageCount` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ScriptableBakedReflectionSystem.stageCount public int stageCount ; Description Number of stages of the baking process. Returns 0. Set this property in the constructor of your child class to set the number of stages in your i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ac473c0e6e6d
unity_docs
rendering
In Unity's 'Introduction to scenes', what is 'The New Scene dialog' and how does it work?
The New Scene dialog opens when you create a new scene from the File menu: ( File > New Scene ) or the Ctrl/Cmd + n shortcut. Use it to create new scenes from specific scene templates in your project, and get information about existing templates. The New Scene dialog Search field: find available scene templates by name...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8bf6852f706d
github
scripting
Write a Unity C# script called Pool Event Trigger
```csharp using UnityEngine.Events; namespace Gilzoide.PrefabPool { public class PoolEventTrigger : APooledBehaviour { public UnityEvent OnGet; public UnityEvent OnRelease; public override void OnGetFromPool() { OnGet.Invoke(); } public override voi...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_4554d4a8167f
unity_docs
editor
What is `Rendering.RenderPipelineEditorUtility.TrySetRenderingLayerName` in Unity? Explain its purpose and usage.
RenderPipelineEditorUtility.TrySetRenderingLayerName Declaration public static bool TrySetRenderingLayerName (int index , string name ); Parameters Parameter Description index The index of the rendering layer to change. name New name for the Rendering Layer. Returns bool Returns true if the change w...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9c60acb72a08
unity_docs
rendering
What is `SceneManagement.Stage.GetHashForStateStorage` in Unity? Explain its purpose and usage.
Stage.GetHashForStateStorage Declaration protected Hash128 GetHashForStateStorage (); Returns Hash128 The hash code identifying this stage. Description Unity calls this method to get a hash code that is used to save the state of the Stage to disk. The state includes Scene view settings and the Camera po...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_93a1bdb06267
unity_docs
scripting
What is `ParticleSystem.NoiseModule.quality` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.quality public ParticleSystemNoiseQuality quality ; Description Generate 1D, 2D or 3D noise. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleSystem ps; public bool moduleE...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7c61c6164f5
unity_docs
rendering
What is `TerrainTools.TerrainPaintUtilityEditor.GetDefaultBrushPreviewMaterial` in Unity? Explain its purpose and usage.
TerrainPaintUtilityEditor.GetDefaultBrushPreviewMaterial Declaration public static Material GetDefaultBrushPreviewMaterial (); Returns Material Default brush preview material. Description Returns the default brush preview material. This material supports procedural mesh generation for use with DrawBrushP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b39e7f6a589
unity_docs
xr
What are the parameters of `Rendering.AsyncGPUReadback.RequestIntoNativeArrayAsync` in Unity?
Description Retrieves data asynchronously from a GPU Texture resource. See AsyncGPUReadback.RequestIntoNativeArray . Declaration public static Awaitable<AsyncGPUReadbackRequest> RequestIntoNativeArrayAsync (ref NativeArray<T> output , ComputeBuffer src ); Declaration public static Awaitable<AsyncGPUReadbackRequest> Req...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d5b706f7f862
unity_docs
editor
Show me a Unity C# example demonstrating `EditorGUI.Slider`.
front of the slider. value The value the slider shows. This determines the position of the draggable thumb. leftValue The value at the left end of the slider. rightValue The value at the right end of the slider. Returns float The value that has been set by the user. Description Makes a slider the user can...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5a054e1878a0
unity_docs
ui
Explain 'Install a UPM package from a Git URL' in Unity.
The Package Manager can load a UPM package from a Git repository on a remote server. ## Procedure To install a UPM package from a Git URL: Open the Package Manager window , if it’s not already open. Open the Add ( + ) menu in the Package Manager’s toolbar . The options for installing packages appear. Install package ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b8c839315e99
unity_docs
editor
What is `DataMode` in Unity? Explain its purpose and usage.
DataMode enumeration Description Options for the different DataMode s of an EditorWindow . Properties Property Description Disabled Represents a situation or context in which the usage of DataModes is not applicable. Authoring Uses this mode where only authoring data is available. Mixed Uses this mode where...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1be3fe376bb0
github
scripting
Write a Unity C# MonoBehaviour script called Base Actor
```csharp using UnityEngine; namespace RMC.Core.Architectures.Umvcs.Context { /// <summary> /// TODO: Add comment /// </summary> public class BaseActor : MonoBehaviour { protected bool IsInitialized { get { return _isInitialized; } } private bool _isInitialized = false; public virtual void Initialize() ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_657124391ba5
unity_docs
rendering
What is `Mesh.MeshData.subMeshCount` in Unity? Explain its purpose and usage.
Mesh.MeshData.subMeshCount public int subMeshCount ; Description The number of sub-meshes in the MeshData . Each sub-mesh corresponds to a Material in a Renderer , such as MeshRenderer or SkinnedMeshRenderer . A sub-mesh consists of a list of triangles, which refer to a set of vertices. Vertices can be ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd4524988b25
unity_docs
scripting
What is `MonoBehaviour` in Unity? Explain its purpose and usage.
MonoBehaviour class in UnityEngine / Inherits from: Behaviour / Implemented in: UnityEngine.CoreModule Description MonoBehaviour is a base class that many Unity scripts derive from. MonoBehaviour offers life cycle functions that make it easier to develop with Unity. MonoBehaviours always exist as a Componen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_33389a07e397
unity_docs
editor
What is `MeshPreview.OnPreviewSettings` in Unity? Explain its purpose and usage.
MeshPreview.OnPreviewSettings Declaration public void OnPreviewSettings (); Description Call this from Editor.OnPreviewSettings or ObjectPreview.OnPreviewSettings to draw additional settings related to the mesh preview. This is optional. Using this feature will enable settings to display a wireframe overlay...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ea7342b88cbd
unity_docs
scripting
What is `TerrainQualityOverrides` in Unity? Explain its purpose and usage.
TerrainQualityOverrides enumeration Description Flags used by QualitySettings to specify which Terrain fields the quality settings should override. Properties Property Description None Override no field. PixelError Override Terrain.heightmapPixelError. BasemapDistance Override Terrain.basemapDistance. Det...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2686bb17e701
unity_docs
ui
Show me a Unity code example for 'Reuse UXML files'.
her UXML files. ## Import a UXML template When you design a large user interface, you can create template UXML files that define parts of the UI, and use the <Template> and <Instance> elements to import it into another UXML file. For example, if you have a portrait UI element that has an image, a name, and a label, y...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_89989af5f133
unity_docs
editor
What is `ProfilerWindow.cpuModuleIdentifier` in Unity? Explain its purpose and usage.
ProfilerWindow.cpuModuleIdentifier public static string cpuModuleIdentifier ; Description The identifier of the CPU Usage Profiler module . Compare this constant to ProfilerWindow.selectedModuleIdentifier to check if the currently selected Profiler module is the CPU Usage Profiler module . ```csharp usin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_827a24f2ba32
unity_docs
ui
In Unity's 'Bind with UXML and C# script', what is 'Define the binding path in UXML' and how does it work?
Define the visual elements and the binding path in UXML. Create a project in Unity with any template. In your Project window , create a folder named bind-with-uxml-csharp folder to store all your files. Create a UI Document named binding_example.uxml and replace its content with the following: ``` <UXML xmlns:ui="Unity...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d42c96630525
unity_docs
scripting
What is `Android.AndroidAssetPacks.GetAssetPackPath` in Unity? Explain its purpose and usage.
AndroidAssetPacks.GetAssetPackPath Declaration public static string GetAssetPackPath (string assetPackName ); Parameters Parameter Description assetPackName The name of the Android asset pack to get path. Returns string Returns the full path to the location where the device stores the assets for the Andr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8743c44b64e9
unity_docs
scripting
What is `Unity.Properties.IPropertyBagVisitor` in Unity? Explain its purpose and usage.
IPropertyBagVisitor interface in Unity.Properties Description Interface used to receive a visitation callbacks for property bags. For more information on how to implement a property visitor by implementing this interface, including an example, refer to Create a property visitor with low-level APIs Public Metho...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_40cb0bbdc842
unity_docs
physics
Give me an overview of the `SimulationStage` class in Unity.
SimulationStage enumeration Description A flag enum to determine which simulation stages to run. Additional resources: Physics.RunSimulationStage, PhysicsScene.RunSimulationStage. Properties Property Description None Shorthand for none of the SimulationStages. PrepareSimulation This stage prepares the physics...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3a79bbe4b19d
unity_docs
physics
What are the parameters of `VersionControl.Provider.IsOpenForEdit` in Unity?
Description Returns true if an asset can be edited. Version control systems like Perforce or Plastic SCM require that an asset be checked out before it can be edited. In such cases this task will test whether the asset is checked out and editable. ```csharp using System.Collections.Generic; using UnityEditor; using Uni...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a64beb4cb698
unity_docs
ui
What is `Windows.LicenseInformation.PurchaseApp` in Unity? Explain its purpose and usage.
LicenseInformation.PurchaseApp Declaration public static string PurchaseApp (); Returns string Purchase receipt. Description Attempts to purchase the app if it is in installed in trial mode. Calling this pops up a dialog for the user asking whether they want to buy the application. If the user buys the ap...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_495bc25809f1
unity_docs
rendering
What is `ShaderUtil.disableShaderOptimization` in Unity? Explain its purpose and usage.
ShaderUtil.disableShaderOptimization public static bool disableShaderOptimization ; Description Disables shader optimization in the Editor. When you set this to true , shader compilers don't optimize your shader code in the Editor's Scene view and Game view. This can greatly speed up the time it takes shaders ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_856dbf6d1ce4
unity_docs
ui
Show me a Unity C# example demonstrating `Editor.CreateInspectorGUI`.
ateInspectorGUI Declaration public UIElements.VisualElement CreateInspectorGUI (); Description Implement this method to make a custom UIElements inspector. Inside this method, you can create your own custom UIElements inspector for a specific object class. Note: This function has to be overridden in order to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_866b910df2b1
unity_docs
physics
Show me a Unity C# example demonstrating `MonoBehaviour.OnControllerColliderHit`.
he ControllerColliderHit data associated with this collision. Description OnControllerColliderHit is called when the CharacterController component hits a collider while performing a Move. Use this to implement behaviour like pushing rigidbodies, playing sounds, or triggering events in response to objects collidi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f69768203ee8
unity_docs
rendering
Show me a Unity code example for 'Set the lighting model in a Surface Shader in the Built-In Render Pipeline'.
t-in DecodeLightmap and ShadeSHPerPixel functions, as seen in UnityGI_Base in the UnityGlobalIllumination.cginc file inside Unity (Windows: <unity install path>/Data/CGIncludes/UnityGlobalIllumination.cginc ; macOS: /Applications/Unity/Unity.app/Contents/CGIncludes/UnityGlobalIllumination.cginc _). ## Example The fol...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1bef73841ef5
github
scripting
Write a Unity C# XR/VR script for Example Canvas
```csharp using UnityEngine; using UnityEngine.UI; using UnityEngine.XR; public class ExampleCanvas : MonoBehaviour { public Text deviceName; public VrBlocks.Rig rig; public Camera mainCam; public Text debugText; float debugDecayTime = 0.0f; void Start() { deviceName.text = s...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_cda5a9f77d0f
unity_docs
input
What is `UIElements.BaseFieldMouseDragger` in Unity? Explain its purpose and usage.
BaseFieldMouseDragger class in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Description Provides the base class for field mouse draggers. Public Methods Method Description SetDragZone Sets the drag zone for the driven field.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d0f7dcab244c
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.A1R5G5B5_UNormPack16` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.A1R5G5B5_UNormPack16 Description A four-component, 16-bit packed unsigned normalized format that has a 1-bit A component in bit 15, a 5-bit R component in bits 10..14, a 5-bit G component in bits 5..9, and a 5-bit ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a6472a6f7142
unity_docs
rendering
Explain 'Sample output textures in a shader' in Unity.
Depth textures are available for sampling in shaders as global shader properties. By declaring a sampler called _CameraDepthTexture you will be able to sample the main depth texture for the camera . _CameraDepthTexture always refers to the camera’s primary depth texture. By contrast, you can use _LastCameraDepthTexture...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7763692be2e8
unity_docs
scripting
What is `UIElements.EventBase_1.Dispose` in Unity? Explain its purpose and usage.
EventBase<T0>.Dispose Declaration public void Dispose (); Description Implementation of IDispose. If the event was instantiated from an event pool, the event is released when Dispose is called.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7ee64b6cb33d
unity_docs
performance
What is `Experimental.Rendering.IScriptableBakedReflectionSystem.Cancel` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. IScriptableBakedReflectionSystem.Cancel Declaration public void Cancel (); Description Cancel the running bake jobs.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_da92c184e07f
unity_docs
rendering
In Unity's 'Import a texture', what is 'Supported file formats' and how does it work?
Unity can read the following file formats: BMP EXR GIF HDR IFF JPG PICT PNG PSD TGA TIFF Unity automatically flattens multi-layer Photoshop PSD or TIFF files on import so that there is no size penalty for your game. This flattening happens to the imported data in Unity, not to the file itself, so you can continue to sa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_12e4e60e75e1
unity_docs
editor
What is `iOS.Xcode.PBXProject.AddPublicHeaderToBuild` in Unity? Explain its purpose and usage.
PBXProject.AddPublicHeaderToBuild Declaration public void AddPublicHeaderToBuild (string targetGuid , string fileGuid ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by TargetGuidByName . fileGuid The file GUID returned by AddFile or AddFolderReference ....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45f951aaddce
unity_docs
scripting
What is `ParticleSystem.NoiseModule.strengthX` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.strengthX public ParticleSystem.MinMaxCurve strengthX ; Description Define the strength of the effect on the x-axis, when using the ParticleSystem.NoiseModule.separateAxes option. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[Require...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3bbc22988380
unity_docs
performance
What is `Unity.Jobs.IJobParallelForExtensions.EarlyJobInit` in Unity? Explain its purpose and usage.
IJobParallelForExtensions.EarlyJobInit Declaration public static void EarlyJobInit (); Description Gathers and caches reflection data for the internal job system's managed bindings. Unity is responsible for calling this method - don't call it yourself. When the Jobs package is included in the project, Unity gen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_559553b66ff5
unity_docs
physics
What is `Physics.RaycastNonAlloc` in Unity? Explain its purpose and usage.
Physics.RaycastNonAlloc Declaration public static int RaycastNonAlloc ( Ray ray , RaycastHit[] results , float maxDistance = Mathf.Infinity, int layerMask = DefaultRaycastLayers, QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal); Parameters Parameter Description ra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_856e069ba5af
unity_docs
scripting
What is `UIElements.PanelChangedEventBase_1.destinationPanel` in Unity? Explain its purpose and usage.
PanelChangedEventBase<T0>.destinationPanel public UIElements.IPanel destinationPanel ; Description In the case of AttachToPanelEvent, the panel to which the event target element is now attached. In the case of DetachFromPanelEvent, the panel to which the event target element will be attached.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_26ecf54bde39
unity_docs
physics
What is `Collider2D.OnCollisionEnter2D` in Unity? Explain its purpose and usage.
Collider2D.OnCollisionEnter2D(Collision2D) Parameters Parameter Description other The Collision2D data associated with this collision. Description Sent when an incoming collider makes contact with this object's collider (2D physics only). Further information about the collision is reported in the Collision 2D ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_64ac5acda3a4
unity_docs
scripting
Show me a Unity C# example demonstrating `Input.mouseScrollDelta`.
s zero when the mouse scroll is not rotated. Note that a mouse with a center scroll wheel is typical on a PC. Modern macOS uses double finger movement up and down on the trackpad to emulate center scrolling. The value returned by mouseScrollDelta will need to be adjusted according to the scroll rate. In the example...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_266d1074f7c1
unity_docs
scripting
Show me a Unity C# example demonstrating `GUI.GetNameOfFocusedControl`.
GUI.GetNameOfFocusedControl Declaration public static string GetNameOfFocusedControl (); Description Get the name of named control that has focus. Control names are set up by using SetNextControlName . When a named control has focus, this function will return its name. If no control has focus or the focused co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9afb322ad23b
unity_docs
audio
Show me a Unity C# example demonstrating `Audio.AudioMixerGroup.audioMixer`.
AudioMixerGroup.audioMixer public Audio.AudioMixer audioMixer ; Description Gain access to the AudioMixer that this AudioMixerGroup belongs to (Read Only). This property is useful if you want to access the AudioMixer and modify its properties or the properties of its groups dynamically. ```csharp using U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3a8244324b0d
unity_docs
scripting
What is `AndroidJNI.FromReflectedMethod` in Unity? Explain its purpose and usage.
AndroidJNI.FromReflectedMethod Declaration public static IntPtr FromReflectedMethod (IntPtr refMethod ); Description Converts a java.lang.reflect.Method or java.lang.reflect.Constructor object to a method ID. Additional resources: Java Native Interface Specification (Oracle)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3262b8a00f49
unity_docs
ui
Show me a Unity C# example demonstrating `PropertyDrawer`.
r for script variables with custom PropertyAttribute s. PropertyDrawers have two uses: Customize the GUI of every instance of a Serializable class. Customize the GUI of script members with custom PropertyAttribute s. If you have a custom Serializable class, you can use a PropertyDrawer to control how it looks in ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60c00ef20ce5
unity_docs
scripting
What is `IMGUI.Controls.MultiColumnHeaderState.Column.allowToggleVisibility` in Unity? Explain its purpose and usage.
MultiColumnHeaderState.Column.allowToggleVisibility public bool allowToggleVisibility ; Description Option to allow/disallow hiding the column from the context menu. This state is used by the context menu of the MultiColumnHeader to enable/disable the column names in the menu. Ensure at least one column does no...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a9ea16b45ee5
unity_docs
animation
What is `Animations.AnimatorStateMachine.RemoveAnyStateTransition` in Unity? Explain its purpose and usage.
AnimatorStateMachine.RemoveAnyStateTransition Declaration public bool RemoveAnyStateTransition ( Animations.AnimatorStateTransition transition ); Parameters Parameter Description transition The AnyStat transition to remove. Description Utility function to remove an AnyState transition from the state machi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0eab40b39b8b
unity_docs
physics
In Unity's 'Build a player from the command line', what is 'Target switching limitations in batch mode' and how does it work?
Important : For reliable command line builds, always specify the build profile or build target directly on the command line when running any custom script that triggers a build. This requirement also means that you can’t build for multiple targets in a single command line invocation. Instead, run the Unity process sepa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60055ce7162c
unity_docs
scripting
Show me a Unity C# example demonstrating `Physics.ComputePenetration`.
ces . This function is useful to write custom depenetration functions. One particular example is an implementation of a character controller where a specific reaction to collision with the surrounding physics objects is required. In this case, one would first query for the colliders nearby using OverlapSphere and then ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6776bc04817b
unity_docs
scripting
In Unity's 'Android keystores', what is 'Android keystores in Unity' and how does it work?
To interface with keystores, Unity provides the Keystore Manager and properties in Player Settings . You can use these tools to create, configure, or load Android keystores and keys. Note : If you sign an application with a particular key and upload the application to an app store, you must sign future versions of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4b1e0271210a
unity_docs
scripting
What is `Logger.Log` in Unity? Explain its purpose and usage.
Logger.Log Declaration public void Log ( LogType logType , object message ); Declaration public void Log ( LogType logType , object message , Object context ); Declaration public void Log ( LogType logType , string tag , object message ); Declaration public void Log ( LogType logType , str...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dce453b16352
unity_docs
rendering
Show me a Unity C# example demonstrating `HideFlags.HideAndDontSave`.
HideFlags.HideAndDontSave Description The GameObject is not shown in the Hierarchy, not saved to the Scene, and not unloaded by Resources.UnloadUnusedAssets . This is most commonly used for GameObjects which are created by a script and are purely under the script's control. ```csharp using UnityEngine; using Syst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5f646142ff27
unity_docs
editor
Explain 'Toolchain MacOS Arm64 Linux x64' in Unity.
com.unity.toolchain.macos-arm64-linux-x86_64 ## Description Cross-compilation toolchain to build player target Linux x86_64 on host Darwin Arm64 ## Released for Unity Package version 2.0.5 is released for Unity Editor version 6000.0.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cda0cad4de93
unity_docs
rendering
What is `Rendering.CommandBuffer.SetComputeParamsFromMaterial` in Unity? Explain its purpose and usage.
CommandBuffer.SetComputeParamsFromMaterial Declaration public void SetComputeParamsFromMaterial ( ComputeShader computeShader , int kernelIndex , Material material ); Parameters Parameter Description computeShader The ComputeShader to set parameters for. kernelIndex The index of the kernel to set th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e798be2e133
unity_docs
input
Show me a Unity C# example demonstrating `Input.touches`.
of objects representing status of all touches during last frame. (Read Only) (Allocates temporary variables). Note : This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System package. To learn more about input, ref...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45c8b39b8d83
unity_docs
animation
What is `Animations.ParentConstraint.GetSource` in Unity? Explain its purpose and usage.
ParentConstraint.GetSource Declaration public Animations.ConstraintSource GetSource (int index ); Parameters Parameter Description index The index of the source. Returns ConstraintSource The source object and its weight. Description Gets a constraint source by index. Throws InvalidOperationExcepti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e0e91d41de0d
unity_docs
scripting
What is `Color.operator_divide` in Unity? Explain its purpose and usage.
Color.operator / public static Color operator / ( Color a , float b ); Description Divides color a by the float b . Each color component is scaled separately. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Color grayColor = Color.white / 2; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_88728516620c
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC12X12_SRGB` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_ASTC12X12_SRGB Description A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 12×12 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encoding appli...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a959781d0496
unity_docs
scripting
What is `Unity.Android.Gradle.PropertyBoolean` in Unity? Explain its purpose and usage.
PropertyBoolean class in Unity.Android.Gradle / Inherits from: Unity.Android.Gradle.Property_1 Description Boolean property type. Inherited Members Public Methods Method Description AddElementDependencies Adds a list of dependencies by ID to this element. AddElementDependency Adds a dependency to this elemen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_af43fbcf2729
github
scripting
Write a Unity C# script called LT Seq
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; /** * Internal Representation of a Sequence<br> * <br> * &nbsp;&nbsp;<h4>Example:</h4> * var seq = LeanTween.sequence();<br> * seq.append(1f); <span style="color:gray">// delay everything one second</span><br> * seq.append( () =...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_a180b5bfc1b0
unity_docs
scripting
What are the parameters of `Video.VideoPlayer.prepareCompleted` in Unity?
Description The VideoPlayer invokes this event when the video is ready for playback. The VideoPlayer uses VideoPlayer.Prepare to ready a video for playback. When the preparation finishes, the VideoPlayer invokes this callback. If you start playback after this callback is invoked, frames become available instantly. If y...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a6c5d2deb5bd
unity_docs
scripting
What is `SerializeReference` in Unity? Explain its purpose and usage.
SerializeReference class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Marks a field to be serialized as a reference instead of as a value. See the serialization manual page for information about serialization and the complete serialization rules. Without the use of the [SerializeRefere...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e7cdf5ee07a7
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormatUtility.IsNormFormat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormatUtility.IsNormFormat Declaration public static bool IsNormFormat ( Experimental.Rendering.GraphicsFormat format ); Description Returns true if the format is a normalized format. Returns false otherwise.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ae7a722f506b
unity_docs
scripting
Show me a Unity C# example demonstrating `GUI.TextField`.
n value of this function should be assigned back to the string as shown in the example. maxLength The maximum length of the string. If left out, the user can type for ever and ever. style The style to use. If left out, the textField style from the current GUISkin is used. Returns string The edited string. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6cd130dfad46
unity_docs
rendering
What is `Experimental.GlobalIllumination.SpotLightPyramidShape.indirectColor` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SpotLightPyramidShape.indirectColor public Experimental.GlobalIllumination.LinearColor indirectColor ; Description The indirect light color.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7d669cbb6e23
unity_docs
math
What is `Handles.SizeFunction` in Unity? Explain its purpose and usage.
Handles.SizeFunction Declaration public delegate float SizeFunction ( Vector3 position ); Parameters Parameter Description position The current position of the handle in the space of Handles.matrix . Description A delegate type for getting a handle's size based on its current position.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_926c4fa3c828
unity_docs
rendering
What is `U2D.SpriteAtlasTextureSettings` in Unity? Explain its purpose and usage.
SpriteAtlasTextureSettings struct in UnityEditor.U2D Description Texture settings for the packed texture generated by SpriteAtlas . Properties Property Description anisoLevel Packed texture's Anisotropic filtering level. filterMode Filter mode of the packed texture. generateMipMaps Set whether mipmaps shoul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_21adb09fafd1
unity_docs
scripting
Show me a Unity C# example demonstrating `Handles.CubeHandleCap`.
Description Draw a cube handle. Pass this into handle functions. On EventType.Layout event, calculates handle distance to mouse and calls HandleUtility.AddControl accordingly. On EventType.Repaint event, draws the handle shape. Cube Handle Cap in the Scene View. Add the following script to your Assets folder a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5054fbf5e599
unity_docs
ui
What is `UIElements.VisualTreeAsset.Instantiate` in Unity? Explain its purpose and usage.
VisualTreeAsset.Instantiate Declaration public UIElements.TemplateContainer Instantiate (); Returns TemplateContainer The root of the tree of VisualElements that was just cloned. Description Build a tree of VisualElements from the asset. Declaration public UIElements.TemplateContainer Instantiate ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a9cec4abc985
unity_docs
rendering
What is `Rendering.DrawingSettings.ctor` in Unity? Explain its purpose and usage.
DrawingSettings Constructor Declaration public DrawingSettings ( Rendering.ShaderTagId shaderPassName , Rendering.SortingSettings sortingSettings ); Parameters Parameter Description shaderPassName Shader pass to use. sortingSettings Describes the methods to sort objects during rendering. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4c0d5ad98249
unity_docs
math
What is `XR.Eyes.TryGetRightEyeRotation` in Unity? Explain its purpose and usage.
Eyes.TryGetRightEyeRotation Declaration public bool TryGetRightEyeRotation (out Quaternion rotation ); Parameters Parameter Description rotationOut A Quaternion struct to receive the right eye rotation. Returns bool true if eyes can be queried for the right eye rotation; otherwise false. Description...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a9ca839d4fb5
unity_docs
editor
What are the parameters of `Search.SearchIndexer.SetMetaInfo` in Unity?
Description Set arbiraty metadata on a specific document. ```csharp using System.IO; using UnityEditor; using UnityEditor.Search; using UnityEngine; /// <summary> /// Use GetMetaInfo to store some additional data about a specific document within the index db /// that you can retrieve later if needed. /// </summary> st...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3c7244242b9
unity_docs
input
What is `Touch.phase` in Unity? Explain its purpose and usage.
Touch.phase public TouchPhase phase ; Description Describes the phase of the touch. The touch phase refers to the action the finger has taken on the most recent frame update. Since a touch is tracked over its "lifetime" by the device, the start and end of a touch and movements in between can be reported on ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dadcdfd4540b
unity_docs
math
What is `Unity.Android.Gradle.Dependencies.AddDependencyImplementationFileTree` in Unity? Explain its purpose and usage.
Dependencies.AddDependencyImplementationFileTree Declaration public Unity.Android.Gradle.Element AddDependencyImplementationFileTree (string dir , string[] includeFilter ); Parameters Parameter Description dir Files to search directory. includeFilter Array of filters. Returns Element The added depen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3913f6cb1b32
unity_docs
rendering
What is `Cubemap.CopyPixels` in Unity? Explain its purpose and usage.
Cubemap.CopyPixels Declaration public void CopyPixels ( Texture src ); Parameters Parameter Description src The source texture. srcElement The element in the source texture to copy from. For example, the CubemapFace in a Cubemap or the slice in a texture array. Set the value to 0 if src is a 2D text...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2e9fb84872b9
unity_docs
rendering
Explain 'Introduction to HLSL shader programs' in Unity.
In Unity, you usually write shader programs in High-Level Shader Language (HLSL). To add HLSL code to your shader asset , add the code in a shader code block . Note: Unity also supports writing shader programs in other languages like OpenGL Shading Language (GLSL) , but this isn’t generally needed or recommended. There...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_35aa2f06da01
unity_docs
animation
Explain 'Mask animation clips' in Unity.
Masking allows you to discard some of the animation data within a clip, allowing the clip to animate only parts of the object or character rather than the entire thing. For example, if you had a character with a throwing animation. If you wanted to be able to use the throwing animation in conjunction with various other...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c5852f64e739
unity_docs
scripting
What is `Logger.ctor` in Unity? Explain its purpose and usage.
Logger Constructor Declaration public Logger ( ILogHandler logHandler ); Parameters Parameter Description logHandler Pass in default log handler or custom log handler. Description Create a custom Logger. Additional resources: ILogHandler , Debug.unityLogger . ```csharp using UnityEngine; using System....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e6f4436512b7
unity_docs
scripting
Show me a Unity C# example demonstrating `Color.grey`.
Color.grey public static Color grey ; Description English spelling for gray . RGBA is the same (0.5, 0.5, 0.5, 1). ```csharp //Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attached). //Thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e2a9cf0b39fd
unity_docs
rendering
What is `GraphicsBuffer.Target.Index` in Unity? Explain its purpose and usage.
GraphicsBuffer.Target.Index Description GraphicsBuffer can be used as an index buffer. Allows a buffer to be used as an index buffer for Graphics.DrawProcedural and similar low level drawing APIs. When you construct a GraphicsBuffer of this type, the value of stride must be either 2 (16-bit indices) or 4 (32-bi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff2f1f16ca76
unity_docs
scripting
Show me a Unity C# example demonstrating `Transform.InverseTransformDirection`.
the inverse operation to transform from local space to world space you can use Transform.TransformDirection You should use Transform.InverseTransformPoint if the vector represents a position in space rather than a direction. If you need to transform many directions at once consider using Transform.InverseTransformD...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.