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_man_8a2e9672e53d
unity_docs
scripting
In Unity's 'Button', what is 'Add an icon to a Button' and how does it work?
You can enhance the visual appeal of your Button by incorporating an icon, such as a Texture, Render Texture , Sprite , or Vector image asset that exists in your project. For information on how to reference an image asset, refer to Assets . To add an icon for a Button with UI Builder: From the Button’s Inspector tab, c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7e35fdfd46d8
unity_docs
physics
What is `Tilemaps.Tile.ColliderType` in Unity? Explain its purpose and usage.
ColliderType enumeration Description Enum for determining what collider shape is generated for this Tile by the TilemapCollider2D . Properties Property Description None No collider shape is generated for the Tile by the TilemapCollider2D. Sprite The Sprite outline is used as the collider shape for the Tile ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ab53f2c01755
unity_docs
physics
What is `TextureImporterSettings.spriteGenerateFallbackPhysicsShape` in Unity? Explain its purpose and usage.
TextureImporterSettings.spriteGenerateFallbackPhysicsShape public bool spriteGenerateFallbackPhysicsShape ; Description Generates a default physics shape for a Sprite if a physics shape has not been set by the user.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4362b00f759a
unity_docs
input
What is `TouchScreenKeyboard.InputFieldAppearance.Customizable` in Unity? Explain its purpose and usage.
TouchScreenKeyboard.InputFieldAppearance.Customizable Description Customize the visibility of the input field based on the requirement of your application. Use TouchScreenKeyboard.hideInput to control the visibility of the input field. TouchScreenKeyboard.hideInput has an effect only if TouchScreenKeyboard.inp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b5100e9390be
unity_docs
scripting
What is `Sprite.RemoveScriptableObjectAt` in Unity? Explain its purpose and usage.
Sprite.RemoveScriptableObjectAt Declaration public bool RemoveScriptableObjectAt (uint i ); Parameters Parameter Description i The index of the ScriptableObject reference to remove. Returns bool Returns true if the reference is removed. Returns false if the sprite is not referencing the ScriptableObj...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7ce97b01a640
unity_docs
animation
What is `Experimental.Animations.AnimationStreamSource` in Unity? Explain its purpose and usage.
AnimationStreamSource enumeration Description Describes how an AnimationStream is initialized On every frame, the values in the AnimationStream must be reinitialized. AnimationStreamSource describes which values should be used: the default values as stored in the Animator , or the result of previous inputs....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c598865f2153
unity_docs
rendering
In Unity's 'Rich Text', what is 'Markup format' and how does it work?
The markup system is inspired by HTML but isn't intended to be strictly compatible with standard HTML. The basic idea is that a section of text can be enclosed inside a pair of matching tags:- We are <b>not</b> amused. As the example shows, the tags are just pieces of text inside the "angle bracket" characters, < and >...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_71cb5d227952_doc_2
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Gets a value indicating whether or not the Editor is in Play Mode or not.The value of this property is updated during every event to reflect the current state of the Editor.Reading the value of this property is a a thread safe operation and can be used instead of in threaded contexts such as in the constructorof a or ...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_1367f9afbd18
unity_docs
scripting
What is `UIElements.BaseVerticalCollectionView.selectedIndex` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.selectedIndex public int selectedIndex ; Description Returns or sets the selected item's index in the data source. If multiple items are selected, returns the first selected item's index. If multiple items are provided, sets them all as selected. If no item is selected, returns -1.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2693947c999
unity_docs
scripting
Show me a Unity C# example demonstrating `Renderer.localBounds`.
can override the default bounding box by setting your own local space bounding box. This is mostly useful when the renderer uses a shader that does custom vertex deformations, and the default bounding box is not accurate. Use ResetLocalBounds to remove custom bounds override. Note that the custom local bounds value i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2a8423a9ffb
unity_docs
physics
What is `Rendering.CustomMarkerCallbackFlags` in Unity? Explain its purpose and usage.
CustomMarkerCallbackFlags enumeration Description Flags that determine what custom events get called when native plugin callback is issued. You can combine flags by using the bitwise OR operator. Properties Property Description CustomMarkerCallbackDefault No custom event is called. CustomMarkerCallbackForceIn...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5d0183a19cb0
unity_docs
editor
What is `EditorGUIUtility.labelWidth` in Unity? Explain its purpose and usage.
EditorGUIUtility.labelWidth public static float labelWidth ; Description The width in pixels reserved for labels of Editor GUI controls. Editor GUI controls have a certain width allocated for labels. This width can be changed by setting labelWidth to a different value. Setting it to 0 will reset the label width...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e6893737f287
unity_docs
ui
Show me a Unity C# example demonstrating `Overlays.Overlay`.
d customizable panels and toolbars that are available within Editor Windows. Use Overlays to expose actions and tool options in a convenient and user-controllable way. This is the base class that all overlays inherit from. To create an overlay, return a UnityEngine.UIElements.VisualElement. The simplest way to display...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_63e0cb4235fe
github
scripting
Write a Unity Editor script for Utils
```csharp using System; using UnityEngine; using Object = UnityEngine.Object; namespace Duck.HierarchyBehaviour { internal static class Utils { public static GameObject CreateChildGameObject(GameObject parent, string name) { var gameObject = new GameObject(name); gameObject.transform.SetParent(parent.tran...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_90b2620209fb
unity_docs
scripting
What is `Debug.Assert` in Unity? Explain its purpose and usage.
Debug.Assert Declaration public static void Assert (bool condition ); Declaration public static void Assert (bool condition , Object context ); Declaration public static void Assert (bool condition , object message ); Declaration public static void Assert (bool condition , object message , Obj...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97735a13b954
unity_docs
performance
What is `Unity.Profiling.ProfilerRecorder.Capacity` in Unity? Explain its purpose and usage.
ProfilerRecorder.Capacity public int Capacity ; Description Maximum amount of samples ProfilerRecorder can capture. Shows the maximum amount of samples the ProfilerRecorder can capture. You can use this to set a maximum array size when you copy collected sample data with CopyTo or GetSample methods.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a6ec1c0a5e43
unity_docs
scripting
Show me a Unity C# example demonstrating `Search.SearchUtils.GetHierarchyPath`.
c static string GetHierarchyPath ( GameObject gameObject , bool includeScene ); Parameters Parameter Description gameObject GameObject to extract a path from. includeScene If true, will append the scene name to the path. Returns string Returns the path of a GameObject. Description Get the hierarchy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eaf3c3c148ba
unity_docs
scripting
What is `Unity.Android.Gradle.BuildType` in Unity? Explain its purpose and usage.
BuildType class in Unity.Android.Gradle / Inherits from: Unity.Android.Gradle.BaseBlock Description The C# definition of the buildTypes child element in a gradle file. Build types define certain properties that Gradle uses when building and packaging your app, and are typically configured for different stages...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_533a7eb788b6
unity_docs
scripting
In Unity's 'Basic Layout', what is 'The Rect Tool' and how does it work?
Every UI element is represented as a rectangle for layout purposes. This rectangle can be manipulated in the Scene View using the Rect Tool in the toolbar. The Rect Tool is used both for Unity's 2D features and for UI, and in fact can be used even for 3D objects as well. The Rect Tool can be used to move, resize and ro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ecac194c16fb_doc_4
github
scripting
What does `Update` do in this Unity script? Explain its purpose and signature.
Updates Wrld map resources. Should be called once per frame in Unity Mono Update(). Signature: ```csharp public void Update() ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_708152a99f18
unity_docs
animation
In Unity's 'Introduction to assets in Unity', what is 'How Unity manages assets' and how does it work?
Unity uses the Asset Database to store the assets in your project and maintain consistency between the original source files and their imported versions used by your application at runtime. You can use the Import Activity window to inspect how Unity imports the assets in your project.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_89ce06753251
unity_docs
physics
What is `Physics2D.callbacksOnDisable` in Unity? Explain its purpose and usage.
Physics2D.callbacksOnDisable public static bool callbacksOnDisable ; Description Use this to control whether or not the appropriate OnCollisionExit2D or OnTriggerExit2D callbacks should be called when a Collider2D is disabled. If the Collider2D being disabled has at least a single contact with another Coll...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_506404dd4a01
unity_docs
editor
Explain 'Create a drag-and-drop UI to drag between Editor windows' in Unity.
Version: 2021.3+ This example demonstrates how to use UI Toolkit’s drag events along with the UnityEditor.DragAndDrop class to enable drag-and-drop UI between windows. ## Example overview The example creates two custom Editor windows. You can drag an asset from the Project window into the Editor windows. You can also...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aeeca5261fb1
unity_docs
scripting
What is `Mesh` in Unity? Explain its purpose and usage.
Mesh class in UnityEngine / Inherits from: Object / Implemented in: UnityEngine.CoreModule Description A class that allows you to create or modify meshes. Meshes contain vertices and multiple triangle arrays. Conceptually, all vertex data is stored in separate arrays of the same size. For example, if you hav...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1d661c6b1d2e
unity_docs
rendering
What is `RenderSettings.ambientEquatorColor` in Unity? Explain its purpose and usage.
RenderSettings.ambientEquatorColor public static Color ambientEquatorColor ; Description Ambient lighting coming from the sides. Trilight ambient lighing mode uses this color to affect sideways-facing object parts. In Flat ambient lighting mode, equator color is just the single ambient color, and has the same...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8031c57fec47
github
scripting
Write a Unity C# script called Slider3D Round
```csharp using System; using ExPresSXR.Misc; using UnityEngine; using UnityEngine.XR.Interaction.Toolkit; namespace ExPresSXR.Interaction.ValueRangeInteractable { /// <summary> /// Defines a three dimensional slider interactable with a spherical shape. /// </summary> public class Slider3DRound : Valu...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_c8c788148214
unity_docs
audio
Explain 'Audio Distortion Filter' in Unity.
The Audio Distortion Filter distorts the sound from an Audio Source or sounds that reach the Audio Listener . ## Properties Property: Function: Distortion Level Distortion value to apply to the sound. Value ranges from 0.0 to 1.0. Default is 0.5. ## Details Apply the Audio Distortion Filter to simulate the sound of...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_35a801d3799f
unity_docs
rendering
What is `Rendering.RayTracingAccelerationStructure.RemoveInstance` in Unity? Explain its purpose and usage.
RayTracingAccelerationStructure.RemoveInstance Declaration public void RemoveInstance ( Renderer targetRenderer ); Parameters Parameter Description targetRenderer The Renderer associated with the ray tracing instance. Description Removes a ray tracing instance associated with a Renderer from this RayTraci...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4716661e16b3
unity_docs
scripting
Show me a Unity code example for 'AssetBundle file format reference'.
any AssetBundles that this AssetBundle depends on, as absolute paths. Type usage information that is used for type stripping. This includes usage of Unity objects, MonoBehaviour and ScriptableObject-derived classes, and SerializeReference types. For more information, refer to BuildPlayerOptions.assetBundleManifestPath ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6910d9d9a9ea_doc_23
github
scripting
What does `OnTriggerEnterAsObservable` do in this Unity script? Explain its purpose and signature.
OnTriggerEnter is called when the Collider other enters the trigger. Signature: ```csharp public static IObservable<Collider> OnTriggerEnterAsObservable(this Component component) ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_022c26eeef5f
unity_docs
rendering
In Unity's 'Create a Movie Texture', what is 'Playing the Movie' and how does it work?
Your Movie Texture will not play automatically when the game begins running. You must use a short script to tell it when to play. ``` // this line of code will make the Movie Texture begin playing ((MovieTexture)GetComponent<Renderer>().material.mainTexture).Play(); ``` Attach the following script to toggle Movie playb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d580c03076b5_doc_8
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Contains camera intrinsics, which describe physical characteristics of a passthrough camera Signature: ```csharp public struct PassthroughCameraIntrinsics ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_d399c68b61b1
unity_docs
math
What is `GeometryUtility.TryCreatePlaneFromPolygon` in Unity? Explain its purpose and usage.
GeometryUtility.TryCreatePlaneFromPolygon Declaration public static bool TryCreatePlaneFromPolygon (Vector3[] vertices , out Plane plane ); Parameters Parameter Description vertices An array of vertex positions that define the shape of a polygon. plane A valid plane that goes through the vertices. Retu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3701f4b12f4a
unity_docs
input
What is `UIElements.InputEvent` in Unity? Explain its purpose and usage.
InputEvent class in UnityEngine.UIElements / Inherits from: UIElements.EventBase_1 / Implemented in: UnityEngine.UIElementsModule Description Sends an event when text from a TextField changes. Properties Property Description newData The new text. previousData The text before the change occured. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d44d23ee0505
unity_docs
scripting
Show me a Unity C# example demonstrating `Transform.GetChild`.
ust be smaller than Transform.childCount. Returns Transform Transform child by index. Description Returns a transform child by index. If the transform has no child, or the index argument has a value greater than the number of children then an error will be generated. In this case "Transform child out of bounds...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d56c4cee0055
unity_docs
editor
What is `PrefabUtility.prefabInstanceUnpacking` in Unity? Explain its purpose and usage.
PrefabUtility.prefabInstanceUnpacking Parameters Parameter Description value Instance root GameObject and unpack mode. Description Unity calls this method automatically before a Prefab instance is unpacked.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb6bba33f846
unity_docs
math
What is `AndroidJNI.CallShortMethod` in Unity? Explain its purpose and usage.
AndroidJNI.CallShortMethod Declaration public static short CallShortMethod (IntPtr obj , IntPtr methodID , jvalue[] args ); Description Calls a Java instance method defined by methodID , optionally passing an array of arguments ( args ) to the method. Additional resources: Java Native Interface Specificati...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8e7502e2b95
unity_docs
math
Show me a Unity C# example demonstrating `Gizmos.DrawLineStrip`.
] and points[0] . When this is false , the lines terminate at the last point. Description Draws a line between each point in the supplied span. This function provides a more efficient way to draw multiple lines than repeatedly calling the Gizmos.DrawLine function for each one. Unity draws the first line from p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dbdb58d4f92e
unity_docs
rendering
What is `DetailPrototype` in Unity? Explain its purpose and usage.
DetailPrototype class in UnityEngine / Implemented in: UnityEngine.TerrainModule Description Detail prototype used by the Terrain GameObject. Properties Property Description alignToGround Rotate detail axis parallel to the ground's normal direction, so that the detail is perpendicular to the ground. density...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5914c817a73a
unity_docs
physics
Show me a Unity C# example demonstrating `MonoBehaviour.OnParticleSystemStopped`.
all particles in the system have died, and no new particles will be born. New particles cease to be created either after Stop is called, or when the duration property of a non-looping system has been exceeded. This can be used to notify a script of when a Particle System has finished. In order to receive the callback,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1bd8a760456b
unity_docs
rendering
In Unity's 'Set the culling mode in a shader', what is 'Example' and how does it work?
``` Shader "Examples/CommandExample" { SubShader { // The rest of the code that defines the SubShader goes here. Pass { // Disable culling for this Pass. // You would typically do this for special effects, such as transparent objects or double-sided walls. Cull Off // The rest of the code that defines the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0b03815162f0
unity_docs
math
What is `Build.Reporting.BuildReport.GetFiles` in Unity? Explain its purpose and usage.
BuildReport.GetFiles Declaration public BuildFile[] GetFiles (); Returns BuildFile[] An array of all the files output by the build process. Description Returns an array of all the files output by the build process. The returned array is a copy and this method execution length scales linearly with number o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_62bf9ea577c9
unity_docs
scripting
Explain 'Configuring global particle properties' in Unity.
The Particle System’s Main module contains global properties that affect the whole system. Most of these properties control the initial state of newly created particles. The system emits particles for a specific duration, and can be set to emit continuously using the Looped property. This allows you to set particles to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b1b89068f5bd
unity_docs
ui
In Unity's 'Download and import an asset package', what is 'Viewing imported assets' and how does it work?
After you import an asset package, or a subset of assets from an asset package, you can view a list of the imported assets. To view imported assets: Select My Assets in the navigation panel . Select the package in the list panel . Select the Imported Assets tab in the details panel .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_20b61196db4a
unity_docs
animation
What is `Animator.GetLayerName` in Unity? Explain its purpose and usage.
Animator.GetLayerName Declaration public string GetLayerName (int layerIndex ); Parameters Parameter Description layerIndex The layer index. Returns string The layer name. Description Returns the layer name.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7b45201e73f6
unity_docs
scripting
What is `Playables.ScriptPlayableOutput.Create` in Unity? Explain its purpose and usage.
ScriptPlayableOutput.Create Declaration public static Playables.ScriptPlayableOutput Create ( Playables.PlayableGraph graph , string name ); Parameters Parameter Description graph The PlayableGraph that will contain the ScriptPlayableOutput. name The name of this ScriptPlayableOutput. Returns Scrip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_678c5937f812
unity_docs
editor
What are the parameters of `EditorPrefs.HasKey` in Unity?
Returns bool The existence or not of the key. Description Returns true if key exists in the preferences file. The preferences file is examined to identify whether the specified key exists. True or false is returned. In the following example a key and value can be written into the preference file, or d...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_538278e65250
unity_docs
scripting
Show me a Unity C# example demonstrating `Animator.SetIKRotationWeight`.
al is a target position and rotation for a specific body part. Unity can calculate how to move the part toward the target from the starting point (ie, the current position and rotation obtained from the animation). This function sets a weight value in the range 0..1 to determine how far between the start and goal rotat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_61ccf2793955
unity_docs
editor
Explain 'Build Profiles Profiler settings' in Unity.
Configure the way the Profiler collects data when you build your application. The Build Profiles window has settings which you can enable to change how the Profiler measures data. ## Profiler Build Profiles settings There are two settings related to how the Profiler collects data. Setting Description Autoconnect Prof...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cc446a41164e
unity_docs
rendering
In Unity's 'Blend command in ShaderLab reference', what is 'Parameters' and how does it work?
Parameter Value Function render target Integer, range 0 through 7 The render target index. state Off Disables blending. factor One The value of this input is one. Use this to use the value of the source or the destination color. Zero The value of this input is zero. Use this to remove either the source or the destinati...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff4a0a6aaafa
unity_docs
physics
Show me a Unity C# example demonstrating `Collider2D.isTrigger`.
Collider2D.isTrigger public bool isTrigger ; Description Is this collider configured as a trigger? ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public Collider2D coll; // Use this for initialization void Start() { //Check if the isTrigger option on the Co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0844af0c7172
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PlistElementDict`.
PlistElementDict class in UnityEditor.iOS.Xcode / Inherits from: iOS.Xcode.PlistElement Description Represents a dictionary element in plist document. ```csharp using System; using UnityEditor; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class PlistDocumentExample { [PostProcessBuild] publ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cbe826fb9997
unity_docs
scripting
In Unity's 'Deep linking on Android', what is 'Enable deep linking for Android applications' and how does it work?
Use an intent filter to enable deep linking for Android applications. An intent filter overrides the standard Android App Manifest to include a specific intent filter section for Activity . To set up an intent filter, use the following steps: Navigate to Edit > Project Settings > Player . In the Android settings tab, e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f299643aeefe
unity_docs
scripting
In Unity's 'Use Unity through web proxies', what is 'macOS' and how does it work?
Unity version Proxy authentication Solution Other information Editor 2022.3.21f1, 2023.3.0a18 (or later) and Hub version 3.4.2 or later Accepts basic authentication Do these tasks: Enable automatic proxy configuration . Store your credentials for automatic proxy configuration (macOS) . Refer to footnote 1 that follows ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9e7ab9a62a0e
unity_docs
xr
Explain 'Web request high-level API reference' in Unity.
You can use the high-level API to send simple web requests to backends with common HTTP verbs such as GET , POST , PUT . The following table lists some of the common operations supported by the high-level API. Refer to the linked API documentation for details and example usage for each operation: Method Description Uni...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d3cb28b128dc
unity_docs
scripting
In Unity's 'Display camera views on multiple monitors', what is 'Previewing multiple displays in your Project' and how does it work?
To preview different Camera views, follow these steps: In the Camera’s Inspector , select a Target Display for that Camera. Make sure you’re in the Game view. From the Display menu in the top-left corner, select the Display to Preview.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_707210116068
unity_docs
rendering
Show me a Unity C# example demonstrating `SceneView.AddCameraMode`.
scription name The name for the new mode. section The section in which the new mode will be added. This can be an existing or new section. Returns CameraMode A CameraMode with the provided name and section. Description Add a custom camera mode to the Scene view camera mode list. When a user-defined mode is...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fb48e7eec812
unity_docs
editor
In Unity's 'Import assets simultaneously', what is 'Enable parallel importing' and how does it work?
To enable parallel importing: Go to Edit > Project Settings > Editor . Under the Asset Pipeline section, enable the Parallel Import setting. Parallel importing only happens when the Editor performs a standard Asset Database refresh , which happens when it detects new or modified assets in the Project folder and automat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97c67f2ce165
unity_docs
animation
Show me a Unity C# example demonstrating `HumanTrait.BoneName`.
HumanTrait.BoneName public static string[] BoneName ; Description Array of the names of all human bone types defined by Mecanim. ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Start() { string[] boneName = HumanTrait.BoneName; for (int i = 0; i < Human...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2b6ab5e9ddb
unity_docs
math
What is `Pose` in Unity? Explain its purpose and usage.
Pose struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Representation of a Position, and a Rotation in 3D Space This structure is used primarily in XR applications to describe the current "pose" of a device in 3D space. Static Properties Property Description identity Shorthand for p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8c4dd2f67a48
unity_docs
animation
Explain 'Animation state machine' in Unity.
It’s common for a character or a GameObject to have several animations for the different actions it performs in a game. For example, a character might breath and sway slightly when idle, walk when commanded, and raise their arms when they fall from a platform. A sliding door might open, close, or jam. Mecanim uses a st...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4ee01f776a13
unity_docs
xr
What is `GradientMode.PerceptualBlend` in Unity? Explain its purpose and usage.
GradientMode.PerceptualBlend Description Linearly interpolate between the gradient keys, using a perceptual color space for colors. This mode finds the two keys adjacent to the requested evaluation time, and interpolates between them. Color keys are interpolated using a perceptual " Oklab " color space, which often...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5e93af652c65
unity_docs
scripting
Explain 'Developing for macOS' in Unity.
This section of the User Manual has macOS-specific development information. Topic Description Deep linking for macOS Explains how to use deep linking on macOS. Use IL2CPP with macOS Describes the use of plug-ins for macOS applications using IL2CPP .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6cf685286109
unity_docs
ui
Explain 'IMGUI Controls' in Unity.
## IMGUI Control Types There are a number of different IMGUI Controls that you can create. This section lists all of the available display and interactive Controls. There are other IMGUI functions that affect layout of Controls, which are described in the Layout section of the Guide. ## Label The Label is non-intera...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_da1930754594
unity_docs
xr
In Unity's 'Submit a license request from a command line and browser (macOS, Linux)', what is 'Procedure' and how does it work?
To manually activate your Unity license, follow these steps: Create a license request file (.alf ) from the command line. You must do this step from the computer where you installed Unity. Use that.alf file to generate a Unity license file (.ulf ) from Unity. You must do this step from any computer that has internet ac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c676eb92ddb2
unity_docs
math
What is `XR.Bone.TryGetRotation` in Unity? Explain its purpose and usage.
Bone.TryGetRotation Declaration public bool TryGetRotation (out Quaternion rotation ); Parameters Parameter Description rotation Quaternion to receive the rotation of the bone in Unity world space. Returns bool true if the rotation was retrieved, false otherwise. Description Gets the world rotation...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a54949ccdea4
unity_docs
scripting
What is `ArticulationDriveType.Velocity` in Unity? Explain its purpose and usage.
ArticulationDriveType.Velocity Description Drives in this mode have a very high damping and track the ArticulationDrive.targetVelocity almost kinematically. The damping value that's used in this mode is not serialized, so switching back to a different ArticulationDriveType will use the serialized values.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_57ee85f44b8c
unity_docs
scripting
What is `TextMesh.fontStyle` in Unity? Explain its purpose and usage.
TextMesh.fontStyle public FontStyle fontStyle ; Description The font style to use (for dynamic fonts). If this is set to a value other then normal, the font style set in the font importer is overriden with a custom style. This is only supported for fonts set to use dynamic font rendering. Other fonts will al...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2b493ab8016d
unity_docs
physics
In Unity's 'Event functions', what is 'GUI events' and how does it work?
For projects that use the legacy IMGUI UI system , the MonoBehavior.OnGUI callback is called periodically to draw and manage UI elements. Note : Adding an OnGUI callback, even if empty, to any object in a scene also adds IMGUI processing to the frame handling process, which creates extra overhead. Only use OnGUI if you...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0a00133e8fff
unity_docs
math
What is `Tilemaps.Tilemap.SetTileFlags` in Unity? Explain its purpose and usage.
Tilemap.SetTileFlags Declaration public void SetTileFlags ( Vector3Int position , Tilemaps.TileFlags flags ); Parameters Parameter Description position Position of the Tile on the Tilemap . flags TileFlags to set onto the Tile . Description Sets the TileFlags onto the Tile at the given positio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6dbeb637ebc4
unity_docs
scripting
What is `AndroidJNI.GetStaticObjectField` in Unity? Explain its purpose and usage.
AndroidJNI.GetStaticObjectField Declaration public static IntPtr GetStaticObjectField (IntPtr clazz , IntPtr fieldID ); Description Returns the value of a static field of an object. The result is a reference to a java.lang.Object , or a subclass thereof. Additional resources: Java Native Interface Specifica...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_61d07395066c
unity_docs
scripting
Show me a Unity C# example demonstrating `Vector2.Lerp`.
Vector2.Lerp Declaration public static Vector2 Lerp ( Vector2 a , Vector2 b , float t ); Description Linearly interpolates between vectors a and b by t . The parameter t is clamped to the range [0, 1]. When t = 0 returns a . When t = 1 return b . When t = 0.5 returns the midpoint of ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7bc84e69bd00
unity_docs
ui
In Unity's 'Install Unity using installer files', what is 'Download the Unity Editor installer file' and how does it work?
To download the Unity Editor for the operating system of your development computer, follow these steps: Access the Unity download archive website to select the release versions of the Unity Editor. Note : To get early access to features in the upcoming release, check the Unity Beta Program . Use the filter controls to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0d04edf24261
unity_docs
rendering
What is `Rendering.LocalKeyword.type` in Unity? Explain its purpose and usage.
LocalKeyword.type public Rendering.ShaderKeywordType type ; Description The type of the shader keyword (Read Only). Local shader keywords can either be built-in, specified by a user, or created by a shader compiler plugin.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d35e7c115d8c
unity_docs
scripting
What is `Rendering.VirtualTexturing.Streaming.GetGPUCacheSettings` in Unity? Explain its purpose and usage.
Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future. Streaming.GetGPUCacheSettings Declaration public static GPUCacheSetting[] GetGPUCacheSettings (); Description Gets the GPU cache settings used by Streaming Virtual Texturi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ee0cefa1c1bc
unity_docs
rendering
Give me an overview of the `ModelImporterNormals` class in Unity.
ModelImporterNormals enumeration Description Normal generation options for ModelImporter . Normals can either be imported from the Model file (default), calculated by Unity, or not included in the imported Mesh at all. Vertex normals are most often used for real-time lighting. Additional resources: ModelImporter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bab9c4f296c6
unity_docs
physics
What is `HumanDescription.legStretch` in Unity? Explain its purpose and usage.
HumanDescription.legStretch public float legStretch ; Description Amount by which the leg's length is allowed to stretch when using IK. Inverse Kinematics (IK) can often be handled more smoothly if a small amount of "slack" is allowed in the positions of bones relative to each other. This property controls how ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a8bfad99b487
unity_docs
xr
What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerSummaryMetrics.NumberOfCanceledRequests` in Unity? Explain its purpose and usage.
AsyncReadManagerSummaryMetrics.NumberOfCanceledRequests public int NumberOfCanceledRequests ; Description The total number of canceled requests in the metrics included in the summary calculation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_2690312d7d22_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Real simulation-backed minimap source that reads authoritative references from SimulationLoopDriver. Signature: ```csharp public sealed class SimLoopMinimapSource : GridMinimapSourceBase ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f960f1edeab9
unity_docs
scripting
What is `Resources.UnloadUnusedAssets` in Unity? Explain its purpose and usage.
Resources.UnloadUnusedAssets Declaration public static AsyncOperation UnloadUnusedAssets (); Returns AsyncOperation Object on which you can yield to wait until the operation completes. Description Unloads assets that are not used. An asset is deemed to be unused if it isn't reached after walking the who...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65a4c25e09c8
unity_docs
scripting
What is `UIElements.BaseVerticalCollectionView.showAlternatingRowBackgrounds` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.showAlternatingRowBackgrounds public UIElements.AlternatingRowBackground showAlternatingRowBackgrounds ; Description This property controls whether the background colors of collection view rows alternate. Takes a value from the AlternatingRowBackground enum.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4c9fc2e165c5_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
class EntityObserverThe class is used to provide the debug information about some entity within Unity editor Signature: ```csharp public class EntityObserver: MonoBehaviour ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_42a8d62ffd4c
unity_docs
rendering
Show me a Unity code example for 'Rich Text'.
f00ffff maroon #800000ff navy #000080ff olive #808000ff orange #ffa500ff purple #800080ff red #ff0000ff silver #c0c0c0ff teal #008080ff white #ffffffff yellow #ffff00ff ## Editor GUI Rich text is disabled by default in the editor GUI system but it can be enabled explicitly using a custom GUIStyle . The richText prope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6e052322084c
unity_docs
scripting
Give me an overview of the `ParticleCollisionEvent` class in Unity.
ParticleCollisionEvent struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Information about a particle collision. Properties Property Description colliderComponent The Collider or Collider2D for the GameObject struck by the particles. intersection Intersection point of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_35abf4eb620f
unity_docs
editor
What is `Experimental.GraphView.SearchWindow.Open` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SearchWindow.Open Declaration public static bool Open ( Experimental.GraphView.SearchWindowContext context , T provider ); Parameters Parameter Description context Structure of parameters that configure the search windo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_94f0bbca1deb
unity_docs
rendering
What are the parameters of `Texture3D.SetPixelData` in Unity?
Description Sets the raw data of an entire mipmap level directly in CPU memory. This method sets pixel data for the texture in CPU memory. Texture.isReadable must be true , and you must call Apply after SetPixelData to upload the changed pixels to the GPU. SetPixelData is useful if you want to load compressed or other ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3034cddcc147
unity_docs
rendering
In Unity's 'Scriptable Render Pipeline fundamentals', what is 'ScriptableRenderContext' and how does it work?
ScriptableRenderContext is a class that acts as an interface between the custom C# code in the render pipeline and Unity’s low-level graphics code. Use the ScriptableRenderContext API to schedule and execute rendering commands. For information, see Scheduling and executing rendering commands in the Scriptable Render Pi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_19bc5c5b689a
unity_docs
rendering
What is `RenderTextureFormat.ARGB1555` in Unity? Explain its purpose and usage.
RenderTextureFormat.ARGB1555 Description Color render texture format, 1 bit for Alpha channel, 5 bits for Red, Green and Blue channels. Note that not all graphics cards support 16 bit textures. Use SystemInfo.SupportsRenderTextureFormat to check for support. Additional resources: RenderTexture class, SystemInf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cb528a4637d5
unity_docs
rendering
What is `Mesh.GetUVs` in Unity? Explain its purpose and usage.
Mesh.GetUVs Declaration public void GetUVs (int channel , List<Vector2> uvs ); Declaration public void GetUVs (int channel , List<Vector3> uvs ); Declaration public void GetUVs (int channel , List<Vector4> uvs ); Parameters Parameter Description channel The UV channel, in [0..7] range. uvs A ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_563b73cec870
unity_docs
rendering
In Unity's 'Transparent Cutout Vertex-Lit', what is 'Vertex-Lit Properties' and how does it work?
Note. Unity 5 introduced the Standard Shader which replaces this shader. This shader is Vertex-Lit , which is one of the simplest shaders. All lights shining on it are rendered in a single pass and calculated at vertices only. Because it is vertex-lit, it won’t display any pixel-based rendering effects, such as light c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e9028cebf7c8
unity_docs
math
What is `Matrix4x4.inverse` in Unity? Explain its purpose and usage.
Matrix4x4.inverse public Matrix4x4 inverse ; Description The inverse of this matrix. (Read Only) Inverted matrix is such that if multiplied by the original would result in identity matrix. If as matrix transforms vectors in a particular way, then the inverse matrix can transform them back. For example, Tran...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4864050153f0
unity_docs
scripting
Explain 'Vector3Field' in Unity.
A Vector3Field lets users enter a Vector3 value. Note : To align a Vector3Field with other fields in an Inspector window, simply apply the.unity-base-field__aligned USS class to it. For more information, refer to BaseField . ## Create a Vector3Field You can create a Vector3Field with UI Builder, UXML, and C#. The fol...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a4c6950067dd
unity_docs
scripting
What is `SystemLanguage.Latvian` in Unity? Explain its purpose and usage.
SystemLanguage.Latvian Description Latvian. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Latvian language if (Application.systemLanguage == SystemLanguage.Latvian) { //Outputs into console that the system is Latvi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dc43654cf346
unity_docs
math
What is `U2D.SpriteDataAccessExtensions.SetBindPoses` in Unity? Explain its purpose and usage.
SpriteDataAccessExtensions.SetBindPoses Declaration public static void SetBindPoses ( Sprite sprite , NativeArray<Matrix4x4> src ); Parameters Parameter Description src The list of bind poses for this Sprite. The array must be disposed of by the caller. Description Sets the bind poses for this Sprite. T...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ef10608562d4
github
scripting
Write a Unity C# XR/VR script for Increment UI Text
```csharp using UnityEngine.UI; namespace UnityEngine.XR.Interaction.Toolkit.Samples.StarterAssets { /// <summary> /// Add this component to a GameObject and call the <see cref="IncrementText"/> method /// in response to a Unity Event to update a text display to count up with each event. /// </summary>...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_8a4189777e80
unity_docs
rendering
What is `TextureFormat.DXT1` in Unity? Explain its purpose and usage.
TextureFormat.DXT1 Description Compressed color texture format. DXT1 (BC1) format compresses textures to 4 bits per pixel, and is widely supported on PC and console platforms. It is a good format to compress most of RGB textures. For RGBA (with alpha) textures, use DXT5 . Additional resources: Texture2D.format , ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_798d1be9dedb
unity_docs
scripting
What is `RenderingLayerMask.GetDefinedRenderingLayerCount` in Unity? Explain its purpose and usage.
RenderingLayerMask.GetDefinedRenderingLayerCount Declaration public static int GetDefinedRenderingLayerCount (); Returns int The number of defined Rendering Layers. Description Returns a number of Rendering Layers defined in the Tags and Layers manager .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d5d305a20e3
unity_docs
scripting
What is `Compilation.ScriptCompilerOptions.AdditionalCompilerArguments` in Unity? Explain its purpose and usage.
ScriptCompilerOptions.AdditionalCompilerArguments public string[] AdditionalCompilerArguments ; Description Additional compiler arguments. Compiler arguments must be preceded by a dash ( - ) or a slash ( / ). To get a list of available compiler arguments, see Microsoft's official documentation on compiler opti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ae517bc26b89
unity_docs
scripting
What is `Rendering.VertexAttributeFormat.SInt16` in Unity? Explain its purpose and usage.
VertexAttributeFormat.SInt16 Description 16-bit signed integer. This format matches the @short@ data type in C#, with values ranging from -32768 to 32767. Additional resources: Mesh class, VertexAttribute enum, Mesh.GetVertexAttributeFormat .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8819c20351b5
unity_docs
editor
What is `Profiling.FrameDataView.GetCounterValueAsDouble` in Unity? Explain its purpose and usage.
FrameDataView.GetCounterValueAsDouble Declaration public double GetCounterValueAsDouble (int markerId ); Parameters Parameter Description markerId Marker identifier. Returns double Returns the counter value as double . Description Gets the last value of a counter marker in the frame as a double data...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.