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_6c7a4cf8a828
unity_docs
editor
What is `PlayerSettings.applicationIdentifier` in Unity? Explain its purpose and usage.
PlayerSettings.applicationIdentifier public static string applicationIdentifier ; Description The application identifier for the currently selected build target. Currently supported by Android, iOS, tvOS and macOS. Changing this only sets the identifier for the currently active platform. Use PlayerSettings...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d603e64e1bec
unity_docs
xr
Explain 'AR Foundation' in Unity.
com.unity.xr.arfoundation ## Description AR Foundation enables you to create multi-platform augmented reality (AR) apps with Unity. To learn more about AR Foundation, click the Documentation link above. ## Released for Unity Package version 6.0.6 is released for Unity Editor version 6000.0. ## Compatible with Unit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_08f1c65a6331
unity_docs
scripting
What is `UIElements.Tab` in Unity? Explain its purpose and usage.
Tab class in UnityEngine.UIElements / Inherits from: UIElements.VisualElement / Implemented in: UnityEngine.UIElementsModule Description Creates a tab to organize content on different screens. A Tab has a header that can respond to pointer and mouse events. The header can hold an icon, a label, or both. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2dd8b7583dcb
unity_docs
rendering
In Unity's 'Rotation over Lifetime module reference', what is 'Properties' and how does it work?
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time . Property Function Separate Axes Allow rotation to be specified per axis. When this is enabled, the option to set a rotation for each of X, Y...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8a7c974eb87
unity_docs
scripting
What is `tvOS.Device` in Unity? Explain its purpose and usage.
Device class in UnityEngine.tvOS / Implemented in: UnityEngine.CoreModule Description Interface into tvOS specific functionality. Static Properties Property Description advertisingIdentifier Advertising ID. advertisingTrackingEnabled Is advertising tracking enabled. generation The generation of the device....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81a383b2f66e
unity_docs
rendering
What is `Terrain.normalmapRenderTextureFormat` in Unity? Explain its purpose and usage.
Terrain.normalmapRenderTextureFormat public static RenderTextureFormat normalmapRenderTextureFormat ; Description Render texture format of the Terrain normal map texture. Additional resources: normalmapFormat .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1962d57a7f43
unity_docs
editor
Show me a Unity C# example demonstrating `VersionControl.Provider.GetActiveConfigFields`.
Provider.GetActiveConfigFields Declaration public static ConfigField[] GetActiveConfigFields (); Description Returns the configuration fields for the currently active version control plugin. The task can be useful if, for example, you need to change the version control plugin's credentials. ```csharp using Sys...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0ca7444bf71c
unity_docs
math
What is `Lightmapping.Tetrahedralize` in Unity? Explain its purpose and usage.
Lightmapping.Tetrahedralize Declaration public static void Tetrahedralize (Vector3[] positions , out int[] outIndices , out Vector3[] outPositions ); Parameters Parameter Description positions An array of Light Probe positions. outIndices An array that Unity populates with updated Light Probe indices. o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_035f86eda653
unity_docs
animation
What is `Keyframe.value` in Unity? Explain its purpose and usage.
Keyframe.value public float value ; Description The value of the curve at keyframe. In a 2D graph you could think of this as the y-value. Additional resources: time . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { AnimationCurve curve = AnimationCurve.Linear(0, 0, 5, 5); ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_061389e3dcbc
unity_docs
physics
Explain 'Configure driving forces on a Configurable Joint' in Unity.
Use the Configurable Joint to create custom targets and driving forces for a simulated motor. To configure driving forces on a Configurable Joint : 1. Choose whether you want to apply a target position or apply a target velocity for the driving force to reach. Targets can be linear (directional) or angular (rotational)...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_0a212619fc54_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
The PoolServiceUtilities class provides static methods for interacting with the PoolService.It allows easy access to MonoBehaviour and non-MonoBehaviour pools, including getting, releasing, and destroying objects. Signature: ```csharp public static class PoolServiceUtilities ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_f7b19c4a2fca
unity_docs
scripting
In Unity's 'Handling dependencies between AssetBundles', what is 'Avoid duplicated information across AssetBundles' and how does it work?
By default, Unity doesn’t optimize duplicate data across AssetBundles. For example, if two AssetBundles each contain a prefab referencing the same unassigned material, Unity embeds a copy of the material in both AssetBundles. This increases install size, runtime memory usage, and affects batching, because Unity treats ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f24b4a2c8c6e
unity_docs
editor
What is `Android.AndroidPluginImporterUtilities.GetAndroidSharedLibraryType` in Unity? Explain its purpose and usage.
AndroidPluginImporterUtilities.GetAndroidSharedLibraryType Declaration public static Android.AndroidSharedLibraryType GetAndroidSharedLibraryType ( PluginImporter importer ); Returns AndroidSharedLibraryType Returns the AndroidSharedLibraryType that represents the type of content that the shared library ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1fd926147387_doc_1
github
scripting
What does `AddMLRegistryToManifest` do in this Unity script? Explain its purpose and signature.
Updates the given Manifest to include the ML registry Signature: ```csharp static void AddMLRegistryToManifest(Manifest manifest) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_2753d3b057b6
unity_docs
physics
What is `Physics.OverlapBoxNonAlloc` in Unity? Explain its purpose and usage.
Physics.OverlapBoxNonAlloc Declaration public static int OverlapBoxNonAlloc ( Vector3 center , Vector3 halfExtents , Collider[] results , Quaternion orientation = Quaternion.identity, int mask = AllLayers, QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal); Parame...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_abd090015bed
github
scripting
Write a Unity C# MonoBehaviour script called On Tilt
```csharp using System; using UnityEngine; using UnityEngine.Events; /// <summary> /// When an object is tilted, run some functionality /// Used with a grabable object /// </summary> public class OnTilt : MonoBehaviour { [Tooltip("Tilt range, 0 - 180 degrees")] [Range(0, 1)] public float threshold = 0.0f; ...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_717194d0a1b4
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.lifetimeByEmitterSpeed`.
stem.LifetimeByEmitterSpeedModule lifetimeByEmitterSpeed ; Description Script interface for the Particle System Lifetime By Emitter Speed module. This module controls the initial lifetime of each particle based on the speed of the emitter when the particle was spawned. Particle System modules do not need to be r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_8
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Default interiors materials lookup directory with existing semantically named materials required for runtime assignment. Signature: ```csharp public string IndoorMapMaterialsDirectory; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_470d6e5b8e49
unity_docs
editor
What is `IMGUI.Controls.TreeView.RowGUIArgs` in Unity? Explain its purpose and usage.
RowGUIArgs struct in UnityEditor.IMGUI.Controls Description Method arguments for the virtual method RowGUI . Properties Property Description focused This value is true only when the TreeView has keyboard focus and the TreeView's window has focus. isRenaming This value is true when the ::item is currently bei...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_59f654d7955f_doc_1
github
scripting
What does `FallbackRotationAction` do in this Unity script? Explain its purpose and signature.
The fallback Input System action to use for Rotation Tracking for this GameObject when the default trackingstate action has no rotation data. Must be a QuaternionControl Control. Signature: ```csharp public InputActionProperty FallbackRotationAction => fallbackRotationAction; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_9e660186728c
unity_docs
physics
What is `PhysicsVisualizationSettings.showContactSeparation` in Unity? Explain its purpose and usage.
PhysicsVisualizationSettings.showContactSeparation public static bool showContactSeparation ; Description Whether the PhysicsDebugWindow shows contact separation. If you set this property to true, the PhysicsDebugWindow visualizes ContactPoint.separation .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b8954ccf78a
unity_docs
scripting
What is `Experimental.GraphView.ICollectibleElement.CollectElements` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ICollectibleElement.CollectElements Declaration public void CollectElements (HashSet<GraphElement> collectedElementSet , Func<GraphElement,bool> conditionFunc ); Parameters Parameter Description collectedElementSet The s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_299caeb841bc
unity_docs
editor
What is `SerializationUtility` in Unity? Explain its purpose and usage.
SerializationUtility class in UnityEditor Description Utility functions related to Serialization. Additional resources: ManagedReferenceUtility , SerializeReference , SerializedProperty . Static Methods Method Description ClearAllManagedReferencesWithMissingTypes Removes all managed references that are mi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4c13712d96a3
unity_docs
rendering
What are the parameters of `ParticleSystemRenderer.SetMeshWeightings` in Unity?
Description Sets the weights that the ParticleSystemRenderer uses to assign Meshes to particles. The ParticleSystemRenderer only uses these weights if you set ParticleSystemRenderer.renderMode to ParticleSystemRenderMode.Mesh and set ParticleSystemRenderer.meshDistribution to ParticleSystemMeshDistribution.NonUniformRa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_611557783396
unity_docs
math
Show me a Unity C# example demonstrating `TextGenerator`.
TextGenerator class in UnityEngine / Implemented in: UnityEngine.TextRenderingModule Description Class that can be used to generate text for rendering. Caches vertices, character info, and line info for memory friendlyness. ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoB...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b5c1f604aadc
unity_docs
math
What is `Mesh.SetIndexBufferParams` in Unity? Explain its purpose and usage.
Mesh.SetIndexBufferParams Declaration public void SetIndexBufferParams (int indexCount , Rendering.IndexFormat format ); Parameters Parameter Description indexCount Size of index buffer. format Format of the indices. Description Sets the index buffer size and format. Note: This method is designed fo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5999e6dcebd7
unity_docs
rendering
Explain 'Light Explorer window' in Unity.
The Light Explorer window allows you to select and edit light sources. To open the Light Explorer window from the menu, navigate to Window > Rendering > Light Explorer . Use the five tabs at the top of the panel to view settings for the lights , 2D lights , Reflection Probes , light probes , and static emissive materia...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5a62563aa61c
unity_docs
rendering
What is `DefaultLightingExplorerExtension.Get2DLightColumns` in Unity? Explain its purpose and usage.
DefaultLightingExplorerExtension.Get2DLightColumns Declaration protected LightingExplorerTableColumn[] Get2DLightColumns (); Returns LightingExplorerTableColumn[] Returns column definitions for 2D Lights. Description Gets column definitions for 2D Lights.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5ba0b109300e
unity_docs
scripting
What is `LightProbeGroup` in Unity? Explain its purpose and usage.
LightProbeGroup class in UnityEngine / Inherits from: Behaviour / Implemented in: UnityEngine.CoreModule Description Light Probe Group. Properties Property Description dering Removes ringing from probes if enabled (Editor only). probePositions Editor only function to access and modify probe positions. I...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2510a93ebef4
unity_docs
scripting
Give me an overview of the `DragAndDropVisualMode` class in Unity.
DragAndDropVisualMode enumeration Description Visual indication mode for Drag & Drop operation. Additional resources: DragAndDrop class. Properties Property Description None No indication (drag should not be performed). Copy Copy dragged objects. Link Link dragged objects to target. Move Move dragged obje...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8b18c5692e8c
unity_docs
editor
What is `EditorSnapSettings.gridSnapEnabled` in Unity? Explain its purpose and usage.
EditorSnapSettings.gridSnapEnabled public static bool gridSnapEnabled ; Description Gets or sets whether grid snapping is enabled. When enabled, grid snapping will snap the translate handle to the nearest point on the SceneView grid when the Tool Handle Rotation is set to "Global".
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_920dee918eda
unity_docs
scripting
Show me a Unity C# example demonstrating `MonoBehaviour.didAwake`.
MonoBehaviour.didAwake public bool didAwake ; Description Returns a boolean value which represents if Awake was called. ```csharp using UnityEngine;public class NewBehaviourScript : MonoBehaviour { void Awake() { // Code is within Awake, therefore will print 'true', as Awake was called. Debug.Log(this.didA...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9759fc6ad922
unity_docs
scripting
What is `Vector3.SignedAngle` in Unity? Explain its purpose and usage.
Vector3.SignedAngle Declaration public static float SignedAngle ( Vector3 from , Vector3 to , Vector3 axis ); Parameters Parameter Description from The vector from which the angular difference is measured. to The vector to which the angular difference is measured. axis The contextual direction for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1856ba97c83c
unity_docs
rendering
What is `MaterialProperty.targets` in Unity? Explain its purpose and usage.
MaterialProperty.targets public Object[] targets ; Description Material objects being edited by this property (Read Only). Changes done to property values via floatValue , colorValue , vectorValue , textureValue will be applied to these objects.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ac4475661729_doc_9
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Represents an object which can be initialized using nine arguments.-derived classes that implement this interface can be instantiated with arguments using the function.-derived classes that implement this interface can be added to a with arguments using the GameObject.AddComponent function.These functions can automatic...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_70b1c7fd1d3a
unity_docs
scripting
Show me a Unity C# example demonstrating `GridBrushBase`.
Inherits from: ScriptableObject / Implemented in: UnityEngine.TilemapModule Description Base class for authoring data on a grid with grid painting tools like paint, erase, pick, select and fill. Inheriting this class and/or creating brush asset instances from your inherited class, you can create custom brushes wh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5d3f53e26cde
unity_docs
physics
What is `Sprites.AtlasSettings.paddingPower` in Unity? Explain its purpose and usage.
AtlasSettings.paddingPower public uint paddingPower ; Description The amount of extra padding between packed sprites. Expressed as the power of 2 minus 1 (i.e. paddingPower of 0 enforces a 2 pixel gap between, paddingPower of 1 - 4 pixel gap, paddingPower of 2 - 8 pixel gap, etc.). This can be used to prevent s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0b1ffdf7447d
unity_docs
physics
What is `Cloth.useVirtualParticles` in Unity? Explain its purpose and usage.
Cloth.useVirtualParticles public float useVirtualParticles ; Description Add one virtual particle per triangle to improve collision stability. Virtual particles provide a way of improving cloth collision without increasing the cloth resolution. They are called 'virtual' particles because they only exist during...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cbf4cb681dd0
unity_docs
math
What is `Rendering.RayTracingAccelerationStructure.AddInstance` in Unity? Explain its purpose and usage.
RayTracingAccelerationStructure.AddInstance Declaration public int AddInstance ( Renderer targetRenderer , RayTracingSubMeshFlags[] subMeshFlags , bool enableTriangleCulling , bool frontTriangleCounterClockwise , uint mask , uint id ); Parameters Parameter Description targetRenderer The Renderer to add...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48083fd91cf8
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemLanguage.Portuguese`.
SystemLanguage.Portuguese Description Portuguese. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Portuguese language if (Application.systemLanguage == SystemLanguage.Portuguese) { //Outputs into console that the sys...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b7e676e6e6a
unity_docs
scripting
What are the parameters of `DrawGizmo.ctor` in Unity?
Description Defines when the gizmo should be invoked for drawing. Additional resources: GizmoType , DrawGizmo . ```csharp using UnityEngine; using UnityEditor;// Draw an image above the light when the light is not selected // The icon has to be stored in Assets/Gizmospublic class ExampleScript : MonoBehaviour { // ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f51102c3b8a2
unity_docs
scripting
What is `Unity.IntegerTime.RationalTime.operator_DiscreteTime` in Unity? Explain its purpose and usage.
RationalTime.DiscreteTime Parameters Parameter Description t The RationalTime parameter. Description Converts a RationalTime to DiscreteTime representation. If the rate denominator is 1 and the DiscreteTime.TicksPerSecond is a multiple of the numerator, this conversion is lossless.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_377590f80689
unity_docs
scripting
What is `HandleUtility.DistanceToCone` in Unity? Explain its purpose and usage.
HandleUtility.DistanceToCone Declaration public static float DistanceToCone ( Vector3 position , Quaternion rotation , float size ); Parameters Parameter Description position Position of the cone. rotation Rotation of the cone. size Size of the cone. Returns float Distance from mouse to cone in ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c93115657546
unity_docs
ui
Explain 'Install a UPM package from a local tarball file' in Unity.
The Package Manager can load a UPM package from a tarball file stored locally. This is for advanced scenarios where you break your package publishing workflow into parts and your users can use the intermediate product of one of those parts. For example, if you’ve set up continuous integration (CI) on your custom packag...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1822b394f4ae
unity_docs
xr
What is `Rendering.CommandBuffer.ConfigureFoveatedRendering` in Unity? Explain its purpose and usage.
CommandBuffer.ConfigureFoveatedRendering Declaration public void ConfigureFoveatedRendering (IntPtr platformData ); Parameters Parameter Description platformData The native pointer from XRDisplaySubsystem.XRRenderPass.foveatedRenderingInfo . Description Adds a command to configure foveated rendering. The...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92633a71ce90
unity_docs
rendering
What is `CubemapArray.SetPixelData` in Unity? Explain its purpose and usage.
CubemapArray.SetPixelData Declaration public void SetPixelData (T[] data , int mipLevel , CubemapFace face , int element , int sourceDataStartIndex = 0); Declaration public void SetPixelData (NativeArray<T> data , int mipLevel , CubemapFace face , int element , int sourceDataStartIndex = 0); ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a1b7cd86d495
unity_docs
physics
What is `PhysicsSceneExtensions2D` in Unity? Explain its purpose and usage.
PhysicsSceneExtensions2D class in UnityEngine / Implemented in: UnityEngine.Physics2DModule Description Scene extensions to access the underlying physics scene. Static Methods Method Description GetPhysicsScene2D An extension method that returns the 2D physics Scene from the Scene.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_02cd8af65f0b
unity_docs
rendering
Give me an overview of the `ParticleSystemRenderSpace` class in Unity.
ParticleSystemRenderSpace enumeration Description How particles are aligned when rendered. Properties Property Description View Particles face the camera plane. World Particles align with the world. Local Particles align with their local transform. Facing Particles face the eye position. Velocity Particles ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_184ad289e7c2
unity_docs
scripting
What is `Rendering.GraphicsSettings.ForEach` in Unity? Explain its purpose and usage.
GraphicsSettings.ForEach Declaration public static void ForEach (Action<IRenderPipelineGraphicsSettings> callback ); Parameters Parameter Description callback The callback to be executed. Description Executes the given callback for each IRenderPipelineGraphicsSettings .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e73920380f11
unity_docs
audio
What is `AudioSource.SetSpatializerFloat` in Unity? Explain its purpose and usage.
AudioSource.SetSpatializerFloat Declaration public bool SetSpatializerFloat (int index , float value ); Parameters Parameter Description index Zero-based index of user-defined parameter to be set. value New value of the user-defined parameter. Returns bool True, if the parameter could be set. Desc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a9db46c854b
unity_docs
rendering
What is `TerrainLayer.maskMapRemapMin` in Unity? Explain its purpose and usage.
TerrainLayer.maskMapRemapMin public Vector4 maskMapRemapMin ; Description A Vector4 value specifying the minimum RGBA value that the mask map texture maps to when the value of the channel is 0.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0501ad721601
unity_docs
editor
What is `Profiling.HierarchyFrameDataView.ResolveItemCallstack` in Unity? Explain its purpose and usage.
HierarchyFrameDataView.ResolveItemCallstack Declaration public string ResolveItemCallstack (int id ); Parameters Parameter Description id Hierarchy item identifier. Returns string Returns the callstack associated with the hierarchy item. Returns an empty string if the callstack is empty or if the method ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9521de384502
unity_docs
scripting
What is `UIElements.BaseTreeViewController.GetIndentationDepth` in Unity? Explain its purpose and usage.
BaseTreeViewController.GetIndentationDepth Declaration public int GetIndentationDepth (int id ); Parameters Parameter Description id The item ID. Returns int The depth of the element. Description Returns the depth of the element at that ID.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99f46b2166f7
unity_docs
scripting
What is `UIElements.ScrollView.ctor` in Unity? Explain its purpose and usage.
ScrollView Constructor Declaration public ScrollView (); Description Constructor. Declaration public ScrollView ( UIElements.ScrollViewMode scrollViewMode ); Description Constructor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9f249b816290
unity_docs
rendering
Explain 'Material Validator in the Built-In Render Pipeline' in Unity.
The Physically Based Rendering Material Validator is a draw mode in the Scene View. It allows you to make sure your materials use values which fall within the recommended reference values for physically-based shaders . If pixel values in a particular material fall outside of the reference ranges, the Material Validator...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1dac0da69e26
unity_docs
scripting
What is `CompressionType` in Unity? Explain its purpose and usage.
CompressionType enumeration Description Compression Method for Asset Bundles. When building or recompressing Asset Bundles, these are the available compression methods. Some of these are only available for building and cannot be used for recompression. Additional resources: AssetBundles compression , AssetBund...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_17c222a3f4ad
unity_docs
scripting
Give me an overview of the `ViewTool` class in Unity.
ViewTool enumeration Description Enum for Tools.viewTool. Properties Property Description None View tool is not selected. Orbit The orbit tool is selected. Pan The pan tool is selected. Zoom The zoom tool is selected. FPS The FPS tool is selected.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0d3034df7115
unity_docs
ui
In Unity's 'Toggle', what is 'Create a Toggle' and how does it work?
You can create a Toggle with UI Builder, UXML, or C#. The following C# example creates a Toggle with a specific label: ``` Toggle myToggle = new Toggle("Click me"); ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_857b8d874fca
unity_docs
rendering
What is `CustomRenderTextureUpdateZone.updateZoneCenter` in Unity? Explain its purpose and usage.
CustomRenderTextureUpdateZone.updateZoneCenter public Vector3 updateZoneCenter ; Description Position of the center of the Update Zone within the Custom Render Texture. Additional resources: CustomRenderTexture .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b37346e775ed
unity_docs
scripting
Show me a Unity C# example demonstrating `Windows.WebCam.PhotoCapture.SupportedResolutions`.
PhotoCapture.SupportedResolutions public static IEnumerable<Resolution> SupportedResolutions ; Description A list of all the supported device resolutions for taking pictures. ```csharp using UnityEngine; using System.Collections; using UnityEngine.Windows.WebCam;public class PhotoCaptureResolutionExample : Mono...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_59762df6bb4b
unity_docs
editor
What is `EditorUtility.IsValidUnityYAML` in Unity? Explain its purpose and usage.
EditorUtility.IsValidUnityYAML Declaration public static bool IsValidUnityYAML (string yaml ); Parameters Parameter Description yaml String containing the value to be parsed. Description Returns true if the provided string can be parsed as YAML. Do not use this in performance sensitive contexts.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99968c81822b
unity_docs
scripting
What is `Debug.LogAssertion` in Unity? Explain its purpose and usage.
Debug.LogAssertion Declaration public static void LogAssertion (object message ); Declaration public static void LogAssertion (object message , Object context ); Parameters Parameter Description message String or object to be converted to string representation for display. context Object to which ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4415b7e3e05
unity_docs
networking
Show me a Unity C# example demonstrating `Networking.CertificateHandler.ValidateCertificate`.
meter Description certificateData Certificate data in PEM or DER format. If certificate data contains multiple certificates, the first one is the leaf certificate. Returns bool true if the certificate should be accepted, false if not. Description Callback, invoked for each leaf certificate sent by the remo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d9c80ecccd48
unity_docs
scripting
Explain 'Warm up PSOs' in Unity.
Warm up PSO collections on the GPU at runtime. Important : GraphicsStateCollection is an experimental API and might be changed or removed in the future. To reduce stuttering, compile shaders and create PSOs before they’re first needed, so that the graphics driver caches them to disk. This is called warming up, prewarmi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ad716914bef0
unity_docs
scripting
Show me a Unity C# example demonstrating `MonoBehaviour.OnTransformParentChanged`.
operties with the new parent, such as inheriting settings, updating UI layouts, or recalculating world-space properties. Perform cleanup related to the old parent or initialization tasks relevant to the new parent. In custom Editor scripts, to maintain correct relationships in tools that manipulate the hierarchy at E...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_963967959c48
unity_docs
animation
What is `ModelImporterAnimationCompression.Optimal` in Unity? Explain its purpose and usage.
ModelImporterAnimationCompression.Optimal Description Perform keyframe reduction and choose the best animation curve representation at runtime to reduce memory footprint (default). Optimal is only available for generic and humanoid rig type. Additional resources: ModelImporter.animationCompression .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a783d318f141
unity_docs
editor
Show me a Unity C# example demonstrating `Search.ObjectIndexer.IndexWordComponents`.
ordComponents (int documentIndex , ref string word ); Parameters Parameter Description documentIndex Document where the indexed word was found. word Word to add to the index. Description Splits a word into multiple variations. See IndexPropertyComponents for some examples on how a value can be split int...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eec16c1b5a91
unity_docs
editor
What is `Overlays.OverlayCanvas.Remove` in Unity? Explain its purpose and usage.
OverlayCanvas.Remove Declaration public bool Remove ( Overlays.Overlay overlay ); Parameters Parameter Description overlay The Overlay to remove. Returns bool Returns true if Overlay was found and removed, false if Overlay was not present in OverlayCanvas. Description Remove an Overlay from this c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8fc2ddad73dd
unity_docs
physics
What is `MeshColliderCookingOptions` in Unity? Explain its purpose and usage.
MeshColliderCookingOptions enumeration Description Cooking options that are available with MeshCollider. Properties Property Description None No optional cooking steps will be run. CookForFasterSimulation Toggle between cooking for faster simulation or faster cooking time. EnableMeshCleaning Toggle cleaning o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6bca6c5214f
unity_docs
rendering
Show me a Unity C# example demonstrating `MaterialGlobalIlluminationFlags.RealtimeEmissive`.
MaterialGlobalIlluminationFlags.RealtimeEmissive Description The emissive lighting will affect Enlighten Realtime Global Illumination. It emits lighting into real-time lightmaps and real-time Light Probes. The flags are mutually exclusive so if you are using real-time Emissive lighting, you must remove the Emissive...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e995413aa4d3
unity_docs
rendering
What is `Rendering.RenderPipelineAsset.defaultUIOverdrawMaterial` in Unity? Explain its purpose and usage.
RenderPipelineAsset.defaultUIOverdrawMaterial public Material defaultUIOverdrawMaterial ; Returns Material Default material. Description Return the default UI overdraw Material for this pipeline. This is used whenever the UI debug visualisation mode is enabled.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_06ce0b8168b0
unity_docs
editor
Give me an overview of the `WindowsBuildAndRunDeployTarget` class in Unity.
WindowsBuildAndRunDeployTarget enumeration Description Specifies which Windows device to deploy and launch the Windows app on when using Build and Run from the Editor. This setting is ignored when performing a regular Build. Properties Property Description LocalMachine Runs the app on the local Windows PC. De...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8d88f932d757_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
This is our first system which processes user's input. All systemswhich implements IUpdateSystem are executed every frame Signature: ```csharp public class InputSystem: IUpdateSystem ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_4252bf04dc4c
unity_docs
input
In Unity's 'Input in Web', what is 'Touch support' and how does it work?
Unity Web implements Input.touches and other related APIs in browsers and devices with touch support. By default, mobile devices display a soft keyboard on the touch screen for the user to enter text into UI input fields. To disable this behavior, use the WebGLInput.mobileKeyboardSupport property.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac74a2459af9
unity_docs
math
What are the parameters of `Bounds.ctor` in Unity?
Description Creates a new Bounds. Create a new Bounds with the given center and total size. Bound extents will be half the given size. ```csharp // Create bounding box centered at the origin using UnityEngine; using System.Collections;public class Example : MonoBehaviour { Bounds b; void Start() { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fef4796cf3c1
unity_docs
scripting
Show me a Unity code example for 'MonoBehaviour'.
cript reference . ## Content of a MonoBehaviour script file Double-click a script Asset in Unity to open it in a text editor. By default, Unity uses Visual Studio, but you can select any editor you like from the External Tools panel in Unity’s preferences (menu: Unity > Preferences ). If you choose to create a MonoBe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_003d6185b358
unity_docs
physics
Show me a Unity C# example demonstrating `Collision.contacts`.
cts ; Description The contact points generated by the physics engine. You should avoid using this as it produces memory garbage. Use GetContact or GetContacts instead. Every contact contains a contact point, normal and the two colliders that collided (see ContactPoint ). From inside OnCollisionStay or OnCo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2eddd13c3501
unity_docs
animation
What is `Animations.AnimationHumanStream.SetGoalLocalRotation` in Unity? Explain its purpose and usage.
AnimationHumanStream.SetGoalLocalRotation Declaration public void SetGoalLocalRotation ( AvatarIKGoal index , Quaternion rot ); Parameters Parameter Description index The AvatarIKGoal that is queried. rot The rotation of this IK goal. Description Sets the rotation of this IK goal relative to the root...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7fa27ba68a82
unity_docs
performance
Show me a Unity C# example demonstrating `Unity.Profiling.LowLevel.Unsafe.ProfilerMarkerData`.
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_sr_baa875f9496e
unity_docs
rendering
What is `CullingGroup.IsVisible` in Unity? Explain its purpose and usage.
CullingGroup.IsVisible Declaration public bool IsVisible (int index ); Parameters Parameter Description index The index of the bounding sphere. Returns bool True if the sphere is visible; false if it is invisible. Description Returns true if the bounding sphere at index is currently visible from any ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e6aed851ff58
unity_docs
ui
In Unity's 'Platform Browser window reference', what is 'Add Build Profile' and how does it work?
Select Add Build Profile to create a build profile for the selected platform, which gets added to the main Build Profiles window. You can then customize the new build profile to meet the requirements of your project.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba2af299ba67
unity_docs
scripting
What is `D3D11FullscreenMode.ExclusiveMode` in Unity? Explain its purpose and usage.
D3D11FullscreenMode.ExclusiveMode Description Exclusive mode. In this mode Unity will change the monitor resolution and claim exclusive use of the target display. Note that monitor selection is not available from the startup dialog when using exclusive mode. Also, run in background is not supported when the player ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_33fc3105c48b
unity_docs
scripting
What is `UIElements.Painter2D.Fill` in Unity? Explain its purpose and usage.
Painter2D.Fill Declaration public void Fill ( UIElements.FillRule fillRule ); Parameters Parameter Description fillRule The fill rule (non-zero or odd-even) to use. Default is non-zero. Description Fills the currently defined path.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0a57db121868
unity_docs
rendering
Explain 'Managing importers with scripts' in Unity.
You can use C# scripts to interact with Unity’s built-in importers , or create a scripted importer to add support for files that aren’t natively supported by Unity. ## Scripting with built-in importers Use the callbacks in the AssetPostprocessor class to add custom behavior before or after Unity starts the import pro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cf3ca80ac2a9
unity_docs
math
What is `UIElements.Overflow` in Unity? Explain its purpose and usage.
Overflow enumeration Description Defines what should happened if content overflows an element bounds. Properties Property Description Visible The overflow isn't clipped. It renders outside the element's box. Default Value. Hidden The overflow is clipped, and the rest of the content will be invisible.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_7f69c55e2b07
github
scripting
Write a Unity C# MonoBehaviour script called Labeled Mono
```csharp using System; using System.Linq; using System.Reflection; using UnityEngine; namespace Hudossay.AttributeEvents.Assets.Runtime.CouplingStructure { public readonly struct LabeledMono { public readonly Type MonoType; public readonly LabeledEvent[] LabeledEvents; public readonly...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_4aeb6c015b9a
unity_docs
rendering
Explain 'Fallback font' in Unity.
Each font asset has a limited number of characters. When you use a character that isn’t in the current font asset, TextCore searches the Fallback List until it finds a font asset with that character. The text element then uses that font asset to render the character. You can set a list of fallback fonts to distribute f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a9d147ff44e2
unity_docs
editor
Show me a Unity code example for 'Manage your license through the command line'.
an contact Unity Customer Service. ## Activate a license from the command line Before activating your Unity license by using the command line, make sure that the license file folder exists. Refer to Unity license file location in License troubleshooting . Also make sure that you have write permission to this folder. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3221bbfee3d
unity_docs
math
What are the parameters of `Ray.ToString` in Unity?
Description Returns a formatted string for this ray. Defaults to two digits displayed (format="F2"). For more information, see Microsoft's documentation on Standard numeric format strings . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Ray ray = new Ray(Vector3.zero, ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8b4994c8b90d
unity_docs
editor
Show me a Unity C# example demonstrating `PlayerSettings.Android.minSdkVersion`.
PlayerSettings.Android.minSdkVersion public static AndroidSdkVersions minSdkVersion ; Description The minimum API level required for your application to run. ```csharp using UnityEngine; using UnityEditor; using UnityEditor.Build;public class MinSdkVersionSample : MonoBehaviour { [MenuItem("Build/MinSdkVers...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_34f295c83991
unity_docs
scripting
Show me a Unity C# example demonstrating `AudioSource`.
. To play, pause, and stop a single audio clip, use Play , Pause and Stop . To adjust its volume while playing, use the volume property. Use time to seek through the audio track. To play multiple sounds on one AudioSource, use PlayOneShot . To play a clip at a static position in 3D space, use PlayClipAtPoint ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cd437b260e00
unity_docs
scripting
Show me a Unity C# example demonstrating `EditorWindow`.
ating. Update : Called multiple times per second on all visible windows. OnGUI : Called multiple times per frame for rendering and handling GUI events. OnDisable : Called when the script is disabled or the object is destroyed to finalize and clean up resources. For an example on how to create an Editor window that ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0d697e157f4f
unity_docs
rendering
What is `SystemInfo.usesLoadStoreActions` in Unity? Explain its purpose and usage.
SystemInfo.usesLoadStoreActions public static bool usesLoadStoreActions ; Description True if the Graphics API takes RenderBufferLoadAction and RenderBufferStoreAction into account, false if otherwise. Use this property to check if RenderBufferLoadAction.DontCare or RenderBufferStoreAction.DontCare coul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_874145668b5b
unity_docs
scripting
What is `Experimental.GraphView.PlacematContainer.CreatePlacemat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. PlacematContainer.CreatePlacemat<T>(Rect,string) Parameters Parameter Description placematPosition The position of the new placemat. placematTitle The title of the new placemat. creator A function that creates a new placem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec8c79379a95
unity_docs
audio
Show me a Unity C# example demonstrating `AudioSource.PlayOneShot`.
ally clamps negative scales to zero. Note: Scales larger than one might cause clipping. Description Plays an AudioClip , and scales the AudioSource volume by volumeScale. AudioSource.PlayOneShot does not cancel clips that are already being played by AudioSource.PlayOneShot and AudioSource.Play . For more info...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_0d351936d75b_doc_0
github
scripting
What does `StartRecording` do in this Unity script? Explain its purpose and signature.
Updates the control UI when the user starts recording a new eye gaze log file. Signature: ```csharp public void StartRecording() ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_1bea623e6213
unity_docs
scripting
What is `Editor.saveChangesMessage` in Unity? Explain its purpose and usage.
Editor.saveChangesMessage public string saveChangesMessage ; Description The message that displays to the user if they are prompted to save. Set saveChangesMessage in a derived class to prevent users from accidentally losing unsaved work. For saveChangesMessage to work, you must use it with Editor.hasUnsavedCh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_604cdf2cecf6
unity_docs
editor
In Unity's 'Manage packages in the Asset Store', what is 'Use the My Assets page' and how does it work?
To access the My Assets page do one of the following: Select the My Assets folder icon in the top navigation of the Asset Store. Select your user name in the top right of the navigation, then select My Assets . Go to https://assetstore.unity.com/account/assets . The My Assets page lists the packages you purchased or do...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f45717c99b60
unity_docs
scripting
In Unity's 'Import an Android Library plug-in', what is 'Configure an Android Library plug-in' and how does it work?
Android Library plug-in is a dependency of a built-in module unityLibrary . You can change this default behavior. For example, you can configure an Android Library plug-in to depend on unityLibrary instead. To do this, use the following steps: In the Project window, select the.androidlib plug-in to access the Inspector...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fbf003e7163d
unity_docs
scripting
Show me a Unity C# example demonstrating `Serialization.FormerlySerializedAsAttribute`.
FormerlySerializedAsAttribute class in UnityEngine.Serialization / Implemented in: UnityEngine.CoreModule Description Use this attribute to rename a field without losing its serialized value. Suppose you have a class like this: ```csharp using UnityEngine;public class MyMonster : MonoBehaviour { public int hi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.