Dataset Viewer
Auto-converted to Parquet Duplicate
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_44c5111c5ed4
unity_docs
rendering
What is `AssetPostprocessor.OnPostprocessTexture3D` in Unity? Explain its purpose and usage.
AssetPostprocessor.OnPostprocessTexture(Texture3D) Description Add this function to a subclass to get a notification when a texture3D has completed importing just before Unity compresses it. You can't choose a compression format at this point. If you want to change compression format based on filename or other att...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5ab81cdb52f5
unity_docs
physics
What is `IMGUI.Controls.JointAngularLimitHandle.xMotion` in Unity? Explain its purpose and usage.
JointAngularLimitHandle.xMotion public ConfigurableJointMotion xMotion ; Description Returns or specifies how angular motion is limited about the x-axis. Defaults to ConfigurableJointMotion.Limited . Additional resources: xMin , xMax , xRange .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c2f1f9e75453
unity_docs
physics
In Unity's 'Interaction between collider types', what is 'Collision generates collision detection messages' and how does it work?
When a pair of colliders make contact, they generate collision detection messages if the following are both true: There is at least one dynamic collider. The other collider is a static collider, a kinematic collider, or another dynamic collider. Trigger colliders don’t generate collision detection messages. Unity only ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3a42841f0446
unity_docs
networking
Show me a Unity C# example demonstrating `Random.state`.
er games, reproducible simulations, and unit testing. Generator state can be (re)-initialized in two ways: Call InitState with a simple integer "seed". This is a one-way operation and cannot be retrieved. Setting state using a State previously retrieved from this same property. This type cannot be constructed b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f466bbafd16a
unity_docs
scripting
What is `Mesh.vertexCount` in Unity? Explain its purpose and usage.
Mesh.vertexCount public int vertexCount ; Description Returns the number of vertices in the Mesh (Read Only). ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Mesh mesh = GetComponent<MeshFilter>().mesh; print(mesh.vertexCount); } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_44ee730da8fb
unity_docs
editor
What is `PrefabUtility.LoadPrefabContentsIntoPreviewScene` in Unity? Explain its purpose and usage.
PrefabUtility.LoadPrefabContentsIntoPreviewScene Declaration public static void LoadPrefabContentsIntoPreviewScene (string prefabPath , SceneManagement.Scene scene ); Parameters Parameter Description scene The Scene to load the contents into. prefabPath The path of the Prefab Asset to load the contents ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aba6e139d289
unity_docs
editor
What is `PlayerSettings.WSA.packageVersion` in Unity? Explain its purpose and usage.
PlayerSettings.WSA.packageVersion public static Version packageVersion ; Description The version of the Universal Windows Platform application package to install on the device. In the Editor, Unity displays this under Packaging in UWP Player Settings .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e7da7c43dbbf_doc_2
github
scripting
What does `Synthesize` do in this Unity script? Explain its purpose and signature.
Synthesizes the specified phrase.The phrase to be synthesized.The audio (wave) data upon successful synthesis, or null. Signature: ```csharp private async Task<byte[]> Synthesize(string phrase) ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_496744c33430
unity_docs
scripting
In Unity's 'Create an Android Library plug-in', what is 'Use Android Library plug-ins' and how does it work?
To use the Android Library plug-in within your Unity project, use the following code: ```csharp using UnityEngine; public class FeatureUser : MonoBehaviour { readonly string ControllerName = "com.company.feature.Controller"; AndroidJavaClass m_Class; void Start() { m_Class = new AndroidJavaClass(ControllerName); ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e13ba87b485f
unity_docs
math
What is `ModifiableContactPair.SetNormal` in Unity? Explain its purpose and usage.
ModifiableContactPair.SetNormal Declaration public void SetNormal (int i , Vector3 normal ); Parameters Parameter Description i Index of the contact point. normal Normal at the contact point. Description Set the normal at a particular contact point in this contact pair.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7b226e498389
unity_docs
rendering
What is `SystemInfo.hasHiddenSurfaceRemovalOnGPU` in Unity? Explain its purpose and usage.
SystemInfo.hasHiddenSurfaceRemovalOnGPU public static bool hasHiddenSurfaceRemovalOnGPU ; Description True if the GPU supports hidden surface removal. Some GPUs support hidden surface removal when rendering opaque objects. It is not necessary to do front-to-back sorting of opaque objects on the CPU for systems ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_80d486add7ba
unity_docs
scripting
What is `SystemLanguage.Finnish` in Unity? Explain its purpose and usage.
SystemLanguage.Finnish Description Finnish. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Finnish language if (Application.systemLanguage == SystemLanguage.Finnish) { //Outputs into console that the system is Finni...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_13bf0ebf4307_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Array of finger joint configurations for this fidelity level. Signature: ```csharp public FingerJoints[] FingerJoints; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_a0115512d4ca
unity_docs
editor
What is `iOS.Xcode.PBXProject.GetFrameworksBuildPhaseByTarget` in Unity? Explain its purpose and usage.
PBXProject.GetFrameworksBuildPhaseByTarget Declaration public string GetFrameworksBuildPhaseByTarget (string targetGuid ); Parameters Parameter Description targetGuid The GUID of the target, such as one returned by TargetGuidByName . Returns string Returns the GUID of the existing phase or null if it ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bd29057d74dc
unity_docs
rendering
What are the parameters of `TextureImporter.SetPlatformTextureSettings` in Unity?
Description Sets specific target platform settings. Setup the parameters for a specific platform as described in TextureImporterPlatformSettings . Obsolete Use UnityEditor.TextureImporter.SetPlatformTextureSettings(TextureImporterPlatformSettings) instead. Declaration public void SetPlatformTextureSettings (string plat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef0dac03c214
unity_docs
ui
Show me a Unity C# example demonstrating `GUISkin.window`.
GUISkin.window public GUIStyle window ; Description Style used by default for Window controls (Additional resources: GUI.Window ). ```csharp using UnityEngine;public class Example : MonoBehaviour { // Modifies only the window style of the current GUISkin GUIStyle style; Rect windowRect = new Rect(20, 20, ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bc0a75bf591a
unity_docs
performance
What is `PickingIncludeExcludeList.ExcludeEntities` in Unity? Explain its purpose and usage.
PickingIncludeExcludeList.ExcludeEntities public NativeArray<int> ExcludeEntities ; Description An array of DOTS Entity IDs that the picking algorithm doesn't consider when it selects the nearest object.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fa8a76d68437
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.importPackageCompleted`.
AssetDatabase.importPackageCompleted Parameters Parameter Description value Name of package. Description Callback raised whenever a package import successfully completes. ```csharp using UnityEditor; using UnityEngine;[InitializeOnLoad] public class AssetDatabaseExamples { static AssetDatabaseExamples() { A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_b600976bde5a_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
A version of continuous movement that automatically controls the frame of reference thatdetermines the forward direction of movement based on user preference for each hand.For example, can configure to use head relative movement for the left hand and controller relative movement for the right hand. Signature: ```cshar...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_919eaf2e5e18
unity_docs
math
What are the parameters of `Tilemaps.TileBase.RefreshTile` in Unity?
Description This method is called when the tile is refreshed. Implement this and call Tilemap.RefreshTile on all affected tiles on the Tilemap including the tile at the given position to refresh them. This is also useful if the placement of a tile affects the properties of neighboring tiles. ```csharp using UnityEngine...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_216e74650207
unity_docs
editor
What is `CustomPreviewAttribute` in Unity? Explain its purpose and usage.
CustomPreviewAttribute class in UnityEditor Description Adds an extra preview in the Inspector for the specified type. You can use this attribute to add your custom preview to any object that can be Inspected. Constructors Constructor Description CustomPreviewAttribute Tells a DefaultPreview which class it's ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b94ae7a46437
unity_docs
math
What is `UIElements.NavigationMoveEvent.move` in Unity? Explain its purpose and usage.
NavigationMoveEvent.move public Vector2 move ; Description The move vector, if applicable. This information is not guaranteed to be available through all input sources that can generate NavigationMoveEvents. UI Toolkit standard controls should never depend on this value being set.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4bb4208b41fb
unity_docs
scripting
What is `Animations.GenericBindingUtility.GetAnimatableBindings` in Unity? Explain its purpose and usage.
GenericBindingUtility.GetAnimatableBindings Declaration public static GenericBinding[] GetAnimatableBindings ( GameObject targetObject , GameObject root ); Parameters Parameter Description targetObject The target GameObject to extract the bindings from. root A GameObject ancestor of targetObject. U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_35f8fb3212ea_doc_1
github
scripting
What does `Awake` do in this Unity script? Explain its purpose and signature.
Initialize button state and subscribe to theme updates if enabled. Signature: ```csharp protected override void Awake() ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_887de5b3c02b
unity_docs
input
What is `iOS.Device.generation` in Unity? Explain its purpose and usage.
Device.generation public static iOS.DeviceGeneration generation ; Description The generation of the device. (Read Only) For information on the possible values, see DeviceGeneration . ```csharp using UnityEngine; using UnityEngine.iOS;public class DeviceGenerationExample : MonoBehaviour { string m_DeviceGen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2cda6adf34e9
unity_docs
rendering
Show me a Unity C# example demonstrating `AssetDatabase.FindAssets`.
project, glob:(Editor|Resources) will find all Editor and Resources folders in a project, glob:Editor/* will return all Assets inside Editor folders in a project, while glob:Editor/** will return all Assets within Editor folders recursively. Note: Searching is case insensitive. Use AssetDatabase.GUIDToAsset...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_afffea1897af
unity_docs
math
What is `Rect.PointToNormalized` in Unity? Explain its purpose and usage.
Rect.PointToNormalized Declaration public static Vector2 PointToNormalized ( Rect rectangle , Vector2 point ); Parameters Parameter Description rectangle Rectangle to get normalized coordinates inside. point A point inside the rectangle to get normalized coordinates for. Description Returns the nor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ea4cba576bdd
unity_docs
scripting
Give me an overview of the `MacFullscreenMode` class in Unity.
MacFullscreenMode enumeration Description Mac fullscreen mode. This defines how fullscreen mode is handled on macOS Standalones. Properties Property Description FullscreenWindow Fullscreen window. FullscreenWindowWithDockAndMenuBar Fullscreen window with Dock and Menu bar.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b02446b9ef43
unity_docs
scripting
What is `Playables.PlayableBehaviour.PrepareFrame` in Unity? Explain its purpose and usage.
PlayableBehaviour.PrepareFrame Declaration public void PrepareFrame ( Playables.Playable playable , Playables.FrameData info ); Parameters Parameter Description playable The Playable that owns the current PlayableBehaviour. info A FrameData structure that contains information about the current fram...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_22c0ab9676f9
unity_docs
math
Show me a Unity C# example demonstrating `ContactPoint.normal`.
ContactPoint.normal public Vector3 normal ; Description Normal of the contact point. The following example will draw a line to represent every normal from a collision. Each line will be drawn in the Scene view. ```csharp using UnityEngine;public class Example : MonoBehaviour { void OnCollisionEnter(Collisio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5feb2dd41c63
unity_docs
scripting
What is `AI.NavMeshAgent.SetPath` in Unity? Explain its purpose and usage.
NavMeshAgent.SetPath Declaration public bool SetPath ( AI.NavMeshPath path ); Parameters Parameter Description path New path to follow. Returns bool True if the path is succesfully assigned. Description Assign a new path to this agent. If the path is succesfully assigned the agent will resume movem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_737bbd65681f
unity_docs
ui
Explain 'Create a custom binding to bind USS selectors' in Unity.
Version : 2023.2+ This example shows how to create a custom binding that binds USS selectors to a visual element . ## Example overview This example creates a custom binding that assigns USS class selectors to each child element of a visual element based on the order of the child elements in the hierarchy. The first e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b4ac8520ec4f
unity_docs
rendering
What is `Rendering.GraphicsSettings.cameraRelativeLightCulling` in Unity? Explain its purpose and usage.
GraphicsSettings.cameraRelativeLightCulling public static bool cameraRelativeLightCulling ; Description Enable or disable using the camera position as the reference point for culling lights. When Unity culls distant lights, a light that's far away from the world space origin can flicker. The flickering happens ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4e59f565f73f
unity_docs
scripting
Show me a Unity C# example demonstrating `TextMesh.alignment`.
TextMesh.alignment public TextAlignment alignment ; Description How lines of text are aligned (Left, Right, Center). ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_dcd025c62afb_doc_14
github
scripting
What does `OnNewInputContextClick` do in this Unity script? Explain its purpose and signature.
Occurrs when the user context clicks on the new input controls.Intercepts context click before sub-controls have a chance to displaya context menu to avoid exposing undesirable commands which could otherwisecause corruption by allowing individual keys or values to be removed. Signature: ```csharp protected virtual voi...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_45186aed9c48
unity_docs
rendering
What is `StreamingController.SetPreloading` in Unity? Explain its purpose and usage.
StreamingController.SetPreloading Declaration public void SetPreloading (float timeoutSeconds , bool activateCameraOnTimeout , Camera disableCameraCuttingFrom ); Parameters Parameter Description timeoutSeconds Optional timeout before stopping preloading. Set to 0.0f when no timeout is required. activate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0cacc7b2ea2b
unity_docs
physics
In Unity's 'Troubleshoot D3D12 GPU crashes on Windows', what is 'Understand the driver stack' and how does it work?
Unity doesn’t communicate directly with your GPU. Instead, it relies on a layered driver stack between your project and the hardware. This stack contains multiple dynamic link-libraries (DLLs). Each library acts as a bridge in the rendering pipeline, handling tasks like shader compilation, resource management, and comm...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f5926e3878eb
unity_docs
scripting
What is `UIElements.PointerId.penPointerCount` in Unity? Explain its purpose and usage.
PointerId.penPointerCount public static int penPointerCount ; Description The number of pen pointers the implementation supports. The pointer ID for a pen event is a number between penPointerIdBase and penPointerIdBase + penPointerCount - 1.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81a5fc3fe19a
unity_docs
scripting
Show me a Unity C# example demonstrating `ForceMode.Acceleration`.
idbody, ignoring its mass. Apply the acceleration in each FixedUpdate over a duration of time. In contrast to ForceMode.Force , Acceleration will move every rigidbody the same way regardless of differences in mass. This mode is useful if you just want to control the acceleration of an object directly. In this mode, t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b278eb5c6c2d
unity_docs
scripting
Explain 'Introduction to instantiating prefabs' in Unity.
You can use prefabs to instantiate complicated GameObjects or collections of GameObjects at runtime. Compared with creating GameObjects from scratch using code, instantiating prefabs using code has many advantages because you can do the following: Instantiate a prefab using one line of code. Creating equivalent GameObj...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81e103425a48
unity_docs
scripting
What is `Experimental.GraphView.GraphView.AddLayer` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.AddLayer Declaration public void AddLayer (int index ); Parameters Parameter Description index the index of the new layer. Description Adds a new layer to the GraphView.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_09f57d0048b8
unity_docs
scripting
What are the parameters of `Search.SearchService.ShowContextual` in Unity?
Returns ISearchView Returns the search view window instance. Description Open the search window using a specific context (activating specific filters). ```csharp [MenuItem("Tools/Search Menus _F1")] public static void SearchMenuItems() { SearchService.ShowContextual("menu"); } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48301b2eb4b5
unity_docs
editor
Show me a Unity C# example demonstrating `EditorUtility.CollectDependencies`.
EditorUtility.CollectDependencies Declaration public static Object[] CollectDependencies (Object[] roots ); Description Calculates and returns a list of all assets the assets listed in roots depend on. Editor window that shows the next example. ```csharp using UnityEngine; using UnityEditor;public class Col...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_40f10d7d16a0
unity_docs
scripting
What is `Android.AndroidAssetPackError.AccessDenied` in Unity? Explain its purpose and usage.
AndroidAssetPackError.AccessDenied Description Indicates that the application does not have permission to download asset packs under the current device circumstances. One possible cause of this is that the application is running in the background. Additional resources: AndroidAssetPacks.DownloadAssetPackAsync , A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9bd6a4aac3c8
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.R16G16B16_SFloat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.R16G16B16_SFloat Description A three-component, 48-bit signed floating-point format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, and a 16-bit B component in bytes 4..5.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_482caa230858
unity_docs
rendering
What is `TextureImporterSwizzle.OneMinusG` in Unity? Explain its purpose and usage.
TextureImporterSwizzle.OneMinusG Description Use the inverted green color channel. Additional resources: TextureImporter.swizzleR , TextureImporter.swizzleG , TextureImporter.swizzleB , TextureImporter.swizzleA .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2c0dc156741a
unity_docs
rendering
What is `LOD` in Unity? Explain its purpose and usage.
LOD struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Structure for building a LOD for passing to the SetLODs function. Properties Property Description fadeTransitionWidth Width of the cross-fade transition zone (proportion to the current LOD's whole length) [0-1]. Only used if it's ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b073cf684cec
unity_docs
rendering
In Unity's 'Analyze mipmap streaming', what is 'Get mipmap streaming information in a script' and how does it work?
To get information about texture memory, use the following properties: Texture.currentTextureMemory Texture.desiredTextureMemory Texture.totalTextureMemory Texture.targetTextureMemory Texture.nonStreamingTextureMemory To get information about the number of textures or renderers that mipmap streaming affects, use the fo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c5a4f274fe22
unity_docs
physics
Explain 'Box collider component reference' in Unity.
The Box collider is a built-in cube-shaped collider. It is useful for in-application items such as boxes and crates, or as a simple collider shape that you can stretch and flatten to make ledges, steps, and any other cuboid objects. The Box collider is a low-poly shape, with low resource requirements. Property Descript...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4594c0b8c7b2
unity_docs
editor
In Unity's 'Build an iOS application', what is 'Build an Xcode project from the Unity Editor' and how does it work?
To build an Xcode project for iOS, use the following steps: Select File > Build Profiles . Select Add Build Profile to open the Platform Browser window. From the list of platforms in the Platform pane, select iOS . If iOS isn’t an option, select Install with Unity Hub and follow the installation instructions. Select Ad...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_38da12c0a9ab
unity_docs
scripting
What is `UIElements.BaseTreeView.GetSelectedItems` in Unity? Explain its purpose and usage.
BaseTreeView.GetSelectedItems Declaration public IEnumerable<TreeViewItemData<T>> GetSelectedItems (); Returns IEnumerable<TreeViewItemData<T>> The selected TreeViewItemData items. Description Gets tree data for the selected item indices.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6b36febeb6f4_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
CS Extensionsの更新バージョンがリリースされているかどうかをチェックするクラス。 Signature: ```csharp public static class NewVersionReleaseChecker ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_07a44cfcc673
unity_docs
rendering
What is `Texture3D.SetPixels` in Unity? Explain its purpose and usage.
Texture3D.SetPixels Declaration public void SetPixels (Color[] colors , int miplevel ); Declaration public void SetPixels (Color[] colors ); Parameters Parameter Description colors The array of pixel colours to use. This is a 3D texture flattened to a 1D array. miplevel The mipmap level to write co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b5214e3a282f
unity_docs
scripting
What is `Display.SetParams` in Unity? Explain its purpose and usage.
Display.SetParams Declaration public void SetParams (int width , int height , int x , int y ); Parameters Parameter Description width Windows platforms only. The width of the window. height Windows platforms only. The height of the window. x Windows platforms only. The x position of the window. y Wi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ee24be82801
unity_docs
animation
What is `Animations.TransformStreamHandle.Resolve` in Unity? Explain its purpose and usage.
TransformStreamHandle.Resolve Declaration public void Resolve ( Animations.AnimationStream stream ); Parameters Parameter Description stream The AnimationStream that holds the animated values. Description Bind this handle with an animated values from the AnimationStream . Handles are lazily resolved a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1bf5200fa296
unity_docs
editor
In Unity's 'Services Tooling', what is 'Compatible with Unity' and how does it work?
These package versions are available in Unity version 6000.0: Documentation location: State Versions available: com.unity.services.tooling@1.4 released 1.4.0, 1.4.1 com.unity.services.tooling@1.3 released 1.3.0-exp.1, 1.3.0-exp.2, 1.3.0-exp.3, 1.3.0-exp.4, 1.3.0 com.unity.services.tooling@1.2 released 1.2.0, 1.2.1-exp....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45debe44404e
unity_docs
rendering
What is `TrailRenderer.time` in Unity? Explain its purpose and usage.
TrailRenderer.time public float time ; Description How long does the trail take to fade out. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(TrailRenderer))] public class ExampleClass : MonoBehaviour { public float time = 1.0f; private TrailRenderer tr; void Start() { tr = Ge...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e443bc3fa4fd
unity_docs
scripting
Show me a Unity code example for 'Create a list view runtime UI'.
. Add two visual elements as containers in the UI Document: one that contains the list of character names and another that contains the selected character’s details. Create a project in Unity with any template. In the Project window , create a folder named UI to store all the UI Document and Style Sheet files. In the U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8e13007af6e5
unity_docs
scripting
What is `UIElements.INavigationEvent` in Unity? Explain its purpose and usage.
INavigationEvent interface in UnityEngine.UIElements Description Interface for all navigation events. Properties Property Description actionKey Gets a boolean value that indicates whether the platform-specific action key is pressed. True means the action key is pressed. False means it isn't. altKey ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8b8a2046795
unity_docs
scripting
Show me a Unity C# example demonstrating `Mesh.uv7`.
or Vector4 value if you need to. This property returns a copy of the data. This means that it causes a heap memory allocation. It also means that to make changes to the original data, you must update the copy and then reassign the updated copy to the mesh. The following example demonstrates how to create an array to ho...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_57c5fd7d8089
github
scripting
Write a Unity C# XR/VR script for Multi Anchor Teleport Reticle
```csharp using UnityEngine.UI; using UnityEngine.XR.Interaction.Toolkit.Interactables; using UnityEngine.XR.Interaction.Toolkit.Interactables.Visuals; using UnityEngine.XR.Interaction.Toolkit.Interactors.Visuals; using UnityEngine.XR.Interaction.Toolkit.Locomotion.Teleportation; namespace UnityEngine.XR.Interaction.T...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_8fdf526f23cc
unity_docs
math
What is `Mathf.MoveTowards` in Unity? Explain its purpose and usage.
Mathf.MoveTowards Declaration public static float MoveTowards (float current , float target , float maxDelta ); Parameters Parameter Description current The current value. target The value to move towards. maxDelta The maximum change applied to the current value. Description Moves a value current ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_20b0633a8faf
unity_docs
physics
What is `Rigidbody2D.AddRelativeForceX` in Unity? Explain its purpose and usage.
Rigidbody2D.AddRelativeForceX Declaration public void AddRelativeForceX (float force , ForceMode2D mode = ForceMode2D.Force); Parameters Parameter Description force The force to add to the X component of the Linear Velocity in the local space of the Rigidbody2D . mode The method used to apply the spec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_080ffc5c3a32
unity_docs
rendering
What is `Video.VideoPlayer.targetTexture` in Unity? Explain its purpose and usage.
VideoPlayer.targetTexture public RenderTexture targetTexture ; Description RenderTexture to draw to when VideoPlayer.renderMode is set to VideoRenderMode.RenderTexture . If the RenderTexture is of TextureDimension.Tex2D the video frames will be drawn directly into this target. For optimal performance,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d4c820418069
unity_docs
rendering
In Unity's 'Video Clip Importer reference', what is 'Dimensions options' and how does it work?
Set Dimensions to one of the following options: Property Description Original Size Keep the original size of the source. Three Quarter Res Resize the source to three quarters of its original width and height. Half Res Resize the source to half of its original width and height. Quarter Res Resize the source to a quarter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4ef17fb23419
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.ContainsFileByProjectPath`.
PBXProject.ContainsFileByProjectPath Declaration public bool ContainsFileByProjectPath (string path ); Parameters Parameter Description path The project path of the file. Returns bool Returns true if the project contains the file. Description Checks if the project contains a file with the given proje...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_56f74d27cc48
unity_docs
editor
What is `SceneManagement.AddedComponent` in Unity? Explain its purpose and usage.
AddedComponent class in UnityEditor.SceneManagement / Inherits from: SceneManagement.PrefabOverride Description Class with information about a component that has been added to a Prefab instance. Properties Property Description instanceComponent The added component on the Prefab instance. Public Methods Met...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9aad507ab5a8
unity_docs
scripting
In Unity's 'Warm up PSOs', what is 'Check if shaders are warmed up' and how does it work?
To check when Unity and the graphics driver compile shaders and create PSOs, search for the following profiler markers in the Profiler : Shader.CreateGPUProgram for Unity creating a GPU-specific version of a shader variant. CreateGraphicsGraphicsPipelineImpl for Unity creating a PSO.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4ed57278cc2d
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.importPackageFailed`.
AssetDatabase.importPackageFailed Parameters Parameter Description value Name of package. Description Callback raised whenever a package import failed. Includes an error message to give a reason for the failure. ```csharp using UnityEditor; using UnityEngine;[InitializeOnLoad] public class AssetDatabaseExampl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_76ec9f7531fc
unity_docs
ui
What is `UIElements.IPanel.PickAll` in Unity? Explain its purpose and usage.
IPanel.PickAll Declaration public UIElements.VisualElement PickAll ( Vector2 point , List<VisualElement> picked ); Parameters Parameter Description point World coordinates. picked All Visualelements overlapping this position. Returns VisualElement Top VisualElement at the position. Null if none was...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_47e16f51532c
unity_docs
physics
In Unity's 'Custom scripting symbols', what is 'Custom symbols for a build profile' and how does it work?
You can define custom scripting symbols for a build profile as follows: Select the build profile you want to define symbols for in the Build Profiles window . Navigate to the Scripting Defines list in the Build Data section. Add new scripting symbols to the list by selecting the + button and typing the name of the symb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a95c3de2726a
unity_docs
rendering
What is `SystemInfo.supportsGraphicsFence` in Unity? Explain its purpose and usage.
SystemInfo.supportsGraphicsFence public static bool supportsGraphicsFence ; Description true if the platform supports GraphicsFences, otherwise false . Graphics fences are supported on all platforms that support compute shaders . Additional resources: GraphicsFence .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bfac4bfcfbf5
unity_docs
rendering
What is `Rendering.CommandBuffer.DisableKeyword` in Unity? Explain its purpose and usage.
CommandBuffer.DisableKeyword Declaration public void DisableKeyword (ref Rendering.GlobalKeyword keyword ); Declaration public void DisableKeyword ( ComputeShader computeShader , ref Rendering.LocalKeyword keyword ); Declaration public void DisableKeyword ( Material material , ref Rendering.LocalK...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_edf1c657a0e8
unity_docs
editor
Explain 'Build your application for Dedicated Server' in Unity.
You can create a Dedicated Server build in either of the following ways: Unity Editor Scripting Command line ## Unity Editor To create a Dedicated Server build in the Unity Editor, use the following steps: Open the Build Profiles window from File > Build Profiles . Select Add Build Profile to open the Platform Browse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_29a29badb637
unity_docs
xr
In Unity's 'Foveated rendering', what is 'Get foveated rendering capabilities' and how does it work?
You can get the foveated rendering capabilities of the current device from the foveatedRenderingCaps property of the SystemInfo object. ``` FoveatedRenderingCaps caps = SystemInfo.foveatedRenderingCaps; ``` If the property reports the FoveatedRenderingCaps.None , then the device does not support foveated rendering. Lac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_59d3bd8cd074
unity_docs
scripting
What are the parameters of `Profiling.Profiler.BeginSample` in Unity?
Description Begin profiling a piece of code with a custom label. The Profiler displays the sample in the Hierarchy and Timeline views. The sample is nested under the events or functional calls that lead to the execution of the sampled code. For example, a sample placed in Update displays under Update.ScriptRunBehaviour...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4dfb5ffc425c
unity_docs
scripting
What is `Unity.Loading.ContentFile.GetObjects` in Unity? Explain its purpose and usage.
ContentFile.GetObjects Declaration public Object[] GetObjects (); Returns Object[] All the Objects within the ContentFile . Description This function can be used to access all the Objects loaded in the ContentFile . This method will raise an exception if when called ContentFile.LoadingStatus is not L...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_87582f8c8e1d
unity_docs
audio
What is `AudioSource.volume` in Unity? Explain its purpose and usage.
AudioSource.volume public float volume ; Description The volume of the audio source (0.0 to 1.0). The AudioSource’s volume property controls the level of sound coming from an AudioClip. The highest volume level is 1 and the lowest is 0 where no sound is heard. ```csharp using UnityEngine;public class Example ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f76032202bce
unity_docs
scripting
What is `Caching.MarkAsUsed` in Unity? Explain its purpose and usage.
Caching.MarkAsUsed Obsolete Please use MarkAsUsed with Hash128 instead. Declaration public static bool MarkAsUsed (string url , int version ); Description Bumps the timestamp of a cached file to be the current time. This allows you to keep files in the cache even if you are not explicitly loading them. Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_457f38866d6b
unity_docs
scripting
What is `Unity.Properties.PropertyPath.AppendName` in Unity? Explain its purpose and usage.
PropertyPath.AppendName Declaration public static Unity.Properties.PropertyPath AppendName (ref Unity.Properties.PropertyPath path , string name ); Parameters Parameter Description path The <see cref="PropertyPath" /> name The part name to add. Returns PropertyPath A new PropertyPath Description...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc2a1b680d3c
unity_docs
scripting
Give me an overview of the `LightProbeGroup` class in Unity.
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_man_03725c2a424f
unity_docs
ui
In Unity's 'Handle event callbacks and value changes', what is 'Manage the value of a control' and how does it work?
UI controls use the value property to hold data for their internal state. For example: A Toggle holds a Boolean value that changes when the Toggle is turned on or off. An IntegerField holds an integer that holds the field’s value. To get the value of a control: Get the value from the control directly: int val = myInteg...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_006beeac9cd6
unity_docs
editor
Show me a Unity C# example demonstrating `Android.UserBuildSettings.DebugSymbols.level`.
UserBuildSettings.DebugSymbols.level public static Unity.Android.Types.DebugSymbolLevel level ; Description Specifies what sections are included into the debug symbol. ```csharp using UnityEditor.Android; using Unity.Android.Types;public class Settings { public void Setup() { UserBuildSettings.DebugSymbols...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cfc6f5b402ee
unity_docs
rendering
In Unity's 'Optimize reflections', what is 'Texture compression' and how does it work?
To optimize the rendering time and lower the GPU memory consumption, use texture compression. To control texture compression for baked Reflection Probes, open the Lighting window (menu: Window > Rendering > Lighting ), navigate to Environmental Lighting > Reflections and use the Compression drop-down menu. Note that re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e11b480042da
unity_docs
rendering
What is `EditorGUIUtility.PointsToPixels` in Unity? Explain its purpose and usage.
EditorGUIUtility.PointsToPixels Description Convert from point space to pixel space. Use this for determining the resolution and positioning of custom GUI content, such as render textures. Additional resources: PixelsToPoints , pixelsPerPoint . Declaration public static Vector2 PointsToPixels ( Vector2 posi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_72e87f57ae68
unity_docs
audio
What is `AudioSettings.audioSpatialExperience` in Unity? Explain its purpose and usage.
AudioSettings.audioSpatialExperience public static AudioSpatialExperience audioSpatialExperience ; Description Determines if the Unity app's final mixed audio stream is spatialized. At startup, the value set via the player settings is used. That initial setting can be changed dynamically at runtime via this ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b396b23fd666
unity_docs
editor
Give me an overview of the `FilePathAttribute` class in Unity.
FilePathAttribute class in UnityEditor Description An attribute that specifies a file location relative to the Project folder or Unity's preferences folder. Additional resources: Location . Additional resources: ScriptableSingleton<T0> .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3f629beb6fbc_doc_7
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Searches through the specified search scope until a component of type T is foundand assigns it to the passed variable reference. When no component could be foundin the specified scope, a new component of type T is added to the game object instead.A reference to the variable to be set.Optional search scope if the object...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_aa9a772fe9d0
unity_docs
math
Show me a Unity C# example demonstrating `Mathf.Rad2Deg`.
Mathf.Rad2Deg public static float Rad2Deg ; Description Radians-to-degrees conversion constant (Read Only). This is equal to 360 / (PI * 2) . Additional resources: Deg2Rad constant. ```csharp using UnityEngine;public class MathfRad2Deg : MonoBehaviour { // convert 1 radian to degrees float rad = 1.0f; voi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dbce4ea5fb36
unity_docs
scripting
What is `Camera.cullingMatrix` in Unity? Explain its purpose and usage.
Camera.cullingMatrix public Matrix4x4 cullingMatrix ; Description Sets a custom matrix for the camera to use for all culling queries. This lasts until it is disabled by calling ResetCullingMatrix . A custom culling matrix can be useful in situations where multiple cameras must be culled identically in order...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cf4ca13d7537
unity_docs
rendering
Explain 'Pass information to shader compilers in HLSL' in Unity.
To pass information to the shader compilers in High-Level Shader Language (HLSL), use one of the following directives: The standard HLSL #define directive. The standard HLSL #pragma directive, to pass standard HLSL or Unity-specific directives. The Unity #define_for_platform_compiler directive. ## Add a #define direct...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1f3af01fa5f6
unity_docs
physics
What is `ModifiableContactPair.GetSeparation` in Unity? Explain its purpose and usage.
ModifiableContactPair.GetSeparation Declaration public float GetSeparation (int i ); Parameters Parameter Description i Index of the contact point. Returns float The separation at a contact point. Description Get the separation value at a particular contact point in this contact pair. Separation sho...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c5e14e21dabe
unity_docs
editor
What is `CrashReporting.CrashReportingSettings` in Unity? Explain its purpose and usage.
CrashReportingSettings class in UnityEditor.CrashReporting Description Editor API for the Unity Services editor feature. Normally CrashReporting is enabled from the Services window, but if writing your own editor extension, this API can be used. Static Properties Property Description captureEditorExceptions Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d03b67c9f44a
unity_docs
scripting
What is `Assertions.Assert` in Unity? Explain its purpose and usage.
Assert class in UnityEngine.Assertions / Implemented in: UnityEngine.CoreModule Description The Assert class contains assertion methods for setting invariants in the code. All method calls will be conditionally included only in a development build, unless specified explicitly. See BuildOptions.ForceEnableAsse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_39ffe1bc6045
github
scripting
Write a Unity C# MonoBehaviour script called Position
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; public class Position : MonoBehaviour { public float x; public float y; public float z; private void Start() { gameObject.transform.position = new Vector3(x, y, z); } private void Update() ...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_e58d20309ac5
unity_docs
animation
What is `ModelImporter.CreateDefaultMaskForClip` in Unity? Explain its purpose and usage.
ModelImporter.CreateDefaultMaskForClip Declaration public void CreateDefaultMaskForClip ( ModelImporterClipAnimation clip ); Parameters Parameter Description clip Clip to which the mask will be applied. Description Creates a mask that matches the model hierarchy, and applies it to the provided ModelImpor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3456766717be
unity_docs
scripting
What are the parameters of `Tilemaps.Tilemap.GetCellCenterWorld` in Unity?
Returns Vector3 Returns the center of the cell transformed into world space coordinates. Description Gets the logical center coordinate of a Grid cell in world space. The logical center for a cell of the Tilemap is defined by the Tile Anchor of the Tilemap. In a rectangular grid layout, a call to GridLayout.CellToWorld...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_435bef1f0a75
unity_docs
scripting
What is `UIElements.BaseTreeView` in Unity? Explain its purpose and usage.
BaseTreeView class in UnityEngine.UIElements / Inherits from: UIElements.BaseVerticalCollectionView / Implemented in: UnityEngine.UIElementsModule Description Base class for a tree view, a vertically scrollable area that links to, and displays, a list of items organized in a tree. Static Properties Proper...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6922c686a5cf
unity_docs
scripting
Show me a Unity code example for 'Preserving code using annotations'.
type and all methods that the delegate invokes. Use the [Preserve] attribute when you want to preserve both a type and its default constructor. If you want to keep one or the other but not both, use a link.xml file. You can define the [Preserve] attribute in any assembly and in any namespace. You can use the PreserveAt...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3f1a8fd1cb3a
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.R8G8B8A8_UInt` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.R8G8B8A8_UInt Description A four-component, 32-bit unsigned integer format that has an 8-bit R component in byte 0, an 8-bit G component in byte 1, an 8-bit B component in byte 2, and an 8-bit A component in byte 3...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3