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_3cb44988ea69
unity_docs
rendering
Explain 'View mesh data visualizations' in Unity.
Use the Mesh asset Preview window to view and explore visualizations of a mesh and its data. ## Interact with the Preview window Use the Mesh asset Inspector Preview to preview different elements of a Mesh. You can use the following mouse and keyboard controls to navigate the mesh view: Rotate the view: left-click an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9b6a195ab5e3
unity_docs
rendering
What is `XR.XRDisplaySubsystem.scaleOfAllRenderTargets` in Unity? Explain its purpose and usage.
XRDisplaySubsystem.scaleOfAllRenderTargets public float scaleOfAllRenderTargets ; Description Controls the size of the textures submitted to the display as a multiplier of the display's default resolution. A value of 1.0 uses the default texture resolution specified by the display provider. Values less than 1.0...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4385abefaa4c
unity_docs
networking
What is `Android.AndroidUIModeNight.Undefined` in Unity? Explain its purpose and usage.
AndroidUIModeNight.Undefined Description Mirrors the Android property value UI_MODE_NIGHT_UNDEFINED . For information about the property value, refer to the Android developer documentation on UI_MODE_NIGHT_UNDEFINED .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_40420256fe40
unity_docs
rendering
Explain 'The camera view' in Unity.
Resources about the view frustum, and techniques for changing or moving the camera view. Page Description Introduction to the camera view Learn about the shape of the region the camera views, including the view frustum and clipping planes . Make the camera perspective oblique Set the view frustum so that one side exten...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_61174f511ce2
unity_docs
math
What is `Ray2D.ToString` in Unity? Explain its purpose and usage.
Ray2D.ToString Declaration public string ToString (); Declaration public string ToString (string format ); Declaration public string ToString (string format , IFormatProvider formatProvider ); Parameters Parameter Description format A numeric format string. formatProvider An object that specifies...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2eb13589d9c5
unity_docs
scripting
What is `ILogger.LogError` in Unity? Explain its purpose and usage.
ILogger.LogError Declaration public void LogError (string tag , object message ); Declaration public void LogError (string tag , object message , Object context ); Description A variant of ILogger.Log that logs an error message. Additional resources: Logger.LogError .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_90aaf27b64da
unity_docs
editor
Explain 'Pointer events' in Unity.
Pointer events fire for UI interactions with a pointing device. Similar to mouse events, pointer events provide additional information about the used input device, such as pen pressure or tilt angle. Pointer events always precede mouse events in UI Toolkit. Pointer events don’t have a persistent position. They also don...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d4586f5e0d4d
unity_docs
rendering
What is `HandleUtility.PopCamera` in Unity? Explain its purpose and usage.
HandleUtility.PopCamera Declaration public static void PopCamera ( Camera camera ); Description Retrieve all camera settings. A call to PopCamera will retrieve the most recently stored Camera settings added to a "stack" structure by PushCamera . This allows for easy saving and restoration of temporary camera...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0e109bf11209
unity_docs
rendering
Give me an overview of the `TerrainLayerUtility` class in Unity.
TerrainLayerUtility class in UnityEditor Description A set of helper functions for using terrain layers. Static Methods Method Description CheckNormalMapTextureType Checks whether the texture is correctly imported as a normal map texture. ShowTerrainLayerGUI This helper function shows the Terrain Layer Inspec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_dcd025c62afb_doc_11
github
scripting
What does `DrawAddNewInputButton` do in this Unity script? Explain its purpose and signature.
Draws button for adding new input.Absolute position of button in GUI. Signature: ```csharp protected virtual void DrawAddNewInputButton(Rect position) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_c0f603833356
unity_docs
networking
What is `Networking.UploadHandlerRaw.ctor` in Unity? Explain its purpose and usage.
UploadHandlerRaw Constructor Declaration public UploadHandlerRaw (byte[] data ); Parameters Parameter Description data Raw data to transmit to the remote server. Description General constructor. Contents of the input argument are copied into a native buffer. Declaration public UploadHandlerRaw (NativeA...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_812b7abbbcb4
unity_docs
rendering
What is `Search.SearchAction` in Unity? Explain its purpose and usage.
SearchAction class in UnityEditor.Search Description Defines an action that can be applied on a SearchItem of a specific search provider type. ```csharp using System.Collections.Generic; using UnityEditor; using UnityEditor.Search; using UnityEngine; using UnityEngine.Rendering; public class Example_SearchAction...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eed67b178e64
unity_docs
rendering
Show me a Unity C# example demonstrating `Search.SearchItemOptions`.
SearchItemOptions enumeration Description Indicates how the search item description needs to be formatted when presented to the user. ``` private static SearchItem SearchLogEntry(SearchContext context, SearchProvider provider, LogEntry logEntry) { if (!SearchUtils.MatchSearchGroups(context, logEntry.msgLowerCased...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bb3a23827483
unity_docs
xr
Show me a Unity C# example demonstrating `Search.PropertyDatabase.IsPersistableType`.
Description Returns a boolean indicating if a type can be persisted into the backing file. Only certain types can be persisted in the backing file to survive a domain reload and quitting Unity. However, any type can be stored without backing in the PropertyDatabase . You can always decompose your custom objects into...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_66199c31c725
unity_docs
scripting
What is `GUILayout.MaxHeight` in Unity? Explain its purpose and usage.
GUILayout.MaxHeight Declaration public static GUILayoutOption MaxHeight (float maxHeight ); Description Option passed to a control to specify a maximum height. Maximum Height allowed for the window. ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { // Draws a window you can resize be...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_842c67345ea3
unity_docs
animation
Give me an overview of the `HumanBone` class in Unity.
HumanBone struct in UnityEngine / Implemented in: UnityEngine.AnimationModule Description The mapping between a bone in the model and the conceptual bone in the Mecanim human anatomy. The names of the Mecanim human bone and the bone in the model are stored along with the limiting muscle values that constrain th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7ac5f52f8ca
unity_docs
scripting
Show me a Unity C# example demonstrating `Networking.UnityWebRequestTexture.GetTexture`.
lass significantly reduces memory reallocation compared to downloading raw bytes and creating a texture manually in script. In addition, texture conversion is performed on a worker thread. This method attaches no UploadHandler to the UnityWebRequest . The texture is created as if it stores color data. Only JPG and P...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6f0b7cb75bda
unity_docs
rendering
What is `TextureImporter.ignoreMipmapLimit` in Unity? Explain its purpose and usage.
TextureImporter.ignoreMipmapLimit public bool ignoreMipmapLimit ; Description Enable this flag for textures that should ignore mipmap limit settings. This has no effect if the textureShape is not Texture2D or Texture2DArray . Also, this has no effect on textures without mipmaps. For additional information...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f522b91ce703_doc_13
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Represents an object which can receive two arguments as part of its initialization process.Base interface of . Signature: ```csharp public interface ITwoArguments ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_1c96124d6649
unity_docs
ui
Show me a Unity code example for 'Extending IMGUI'.
appear together. For example, maybe you are creating a Character Creation screen, with several Horizontal Sliders. All of those Sliders need a Label to identify them, so the player knows what they are adjusting. In this case, you could partner every call to GUI.Label() with a call to GUI.HorizontalSlider() , or you cou...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_240e53035744
unity_docs
scripting
What is `ModelImporterIndexFormat.UInt16` in Unity? Explain its purpose and usage.
ModelImporterIndexFormat.UInt16 Description Use 16 bit index buffer. Meshes larger than 65535 vertices will be split up into multiple chunks at import time. Additional resources: ModelImporter.indexFormat , Mesh.indexFormat .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_10472ea9f516
unity_docs
scripting
What is `Windows.Speech.PhraseRecognizedEventArgs` in Unity? Explain its purpose and usage.
PhraseRecognizedEventArgs struct in UnityEngine.Windows.Speech / Implemented in: UnityEngine.CoreModule Description Provides information about a phrase recognized event. Properties Property Description confidence A measure of correct recognition certainty. phraseDuration The time it took for the phrase to b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f824b54167aa
unity_docs
scripting
What is `Video.VideoPlayer.skipOnDrop` in Unity? Explain its purpose and usage.
VideoPlayer.skipOnDrop public bool skipOnDrop ; Description Whether the VideoPlayer is allowed to skip frames to catch up with current time. Only settable if VideoPlayer.canSetSkipOnDrop is true .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e2a0603c1801
unity_docs
xr
Explain 'Develop for Meta Quest workflow' in Unity.
Unity supports development for Meta Quest 2, 3, and 3S, and Quest Pro. The following sections outline Unity’s resources and packages to develop for Meta Quest devices. ## Packages Unity provides multiple packages that you can use to develop for Meta Quest devices. The route you choose to develop for Meta Quest depend...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9d1eaf043d9d
unity_docs
scripting
What is `UIElements.ToolbarMenu` in Unity? Explain its purpose and usage.
ToolbarMenu class in UnityEditor.UIElements / Inherits from: UIElements.TextElement Implements interfaces: IToolbarMenuElement Description A drop-down menu for the toolbar. For more information, refer to UXML element ToolbarMenu . Static Properties Property Description arrowUssClassName USS class name...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_69bcd1719cf3
unity_docs
rendering
What is `SpeedTreeImporter` in Unity? Explain its purpose and usage.
SpeedTreeImporter class in UnityEditor / Inherits from: AssetImporter Description AssetImporter for importing SpeedTree model assets. Static Properties Property Description windQualityNames Gets an array of name strings for wind quality value. Properties Property Description alphaTestRef Gets and sets a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b92bdf604222
unity_docs
scripting
Explain 'Mesh Filter component reference' in Unity.
A Mesh Filter component holds a reference to a mesh. It works with a Mesh Renderer component on the same GameObject ; the Mesh Renderer renders the mesh that the Mesh Filter references. To render a deformable mesh, use a Skinned Mesh Renderer instead. A Skinned Mesh Renderer component does not need a Mesh Filter compon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5887e187e398
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemLanguage.Ukrainian`.
SystemLanguage.Ukrainian Description Ukrainian. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Ukrainian language if (Application.systemLanguage == SystemLanguage.Ukrainian) { //Outputs into console that the system ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_089c28bfed81
unity_docs
ui
What is `Connect.CoppaDrawer` in Unity? Explain its purpose and usage.
CoppaDrawer class in UnityEditor.Connect Implements interfaces: IProjectEditorDrawer Description A container that fetches the UIElements that draw the COPPA compliance UI and subscribes to its events. Constructors Constructor Description CoppaDrawer The default constructor for the COPPA UI drawer that subscri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b79d20aa3c08
unity_docs
rendering
What is `HandleUtility.DistanceToLine` in Unity? Explain its purpose and usage.
HandleUtility.DistanceToLine Declaration public static float DistanceToLine ( Vector3 p1 , Vector3 p2 ); Description Returns the distance in pixels from the mouse pointer to a line. Calculates the screen space distance from the mouse pointer to the line between p1 and p2/ world space points. Uses the c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e3ed1fe0d293
unity_docs
scripting
What is `UIElements.BaseListView.reorderableItemHandleBarUssClassName` in Unity? Explain its purpose and usage.
BaseListView.reorderableItemHandleBarUssClassName public static string reorderableItemHandleBarUssClassName ; Description The USS class name for drag handle bar in reorderable animated ListView. Unity adds this USS class to every drag handle bar in the ListView when reorderMode is set to Animated . Any st...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a304ea57f8c8
unity_docs
input
Explain 'Move a camera along a ray' in Unity.
It is sometimes useful to get a ray corresponding to a screen position and then move the camera along that ray. For example, you may want to allow the user to select an object with the mouse and then zoom in on it while keeping it “pinned” to the same screen position under the mouse (this might be useful when the camer...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_44863acade36_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
A Positioner represents a point at a geographic location on an indoor or outdoor map, and provides a convenientmeans of positioning an object when its absolute altitude may be unknown.A Positioner's latitude and longitude are explicitly specified.However, its vertical position is defined implicitly, by specifying an el...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_3ff4b32c8a34
unity_docs
scripting
What is `Progress.GetName` in Unity? Explain its purpose and usage.
Progress.GetName Declaration public static string GetName (int id ); Parameters Parameter Description id The progress indicator's unique ID. Returns string The matching progress indicator's name. Description Gets a progress indicator's name.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4bf16b479333
unity_docs
scripting
What is `Compilation.CompilationPipeline.GetAssemblyDefinitionFilePathFromScriptPath` in Unity? Explain its purpose and usage.
CompilationPipeline.GetAssemblyDefinitionFilePathFromScriptPath Declaration public static string GetAssemblyDefinitionFilePathFromScriptPath (string sourceFilePath ); Parameters Parameter Description sourceFilePath Source (script) file path. Returns string File path of assembly definition file. Descri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c6ac48a1f581
unity_docs
editor
What is `EditorWindow.titleContent` in Unity? Explain its purpose and usage.
EditorWindow.titleContent public GUIContent titleContent ; Description The GUIContent used for drawing the title of EditorWindows. The icon of titleContent will be shown as the tab icon when the window is docked. It is recommended to set it in OnEnable (and not in the constructor) if an icon is used.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef49e2d9c2a4
unity_docs
scripting
What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.AsRef` in Unity?
Returns T A reference to the struct of type T . This reference allows changes to the struct at its current memory location. Description Gets a reference to a struct at a specific memory location. The AsRef method provides a reference to a struct directly in memory. This allows efficient data manipulation without copyin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_737c9deb7a8d
unity_docs
editor
What is `EditorWindow.mouseOverWindow` in Unity? Explain its purpose and usage.
EditorWindow.mouseOverWindow public static EditorWindow mouseOverWindow ; Description The EditorWindow currently under the mouse cursor. (Read Only) mouseOverWindow can be null if there is no window under the cursor. Additional resources: focusedWindow . Move the mouse over other Unity windows to automatic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bd520507c16d
unity_docs
physics
What is `HingeJoint.spring` in Unity? Explain its purpose and usage.
HingeJoint.spring public JointSpring spring ; Description The spring attempts to reach a target angle by adding spring and damping forces. The JointSpring.spring force attempts to reach the target angle. A larger value makes the spring reach the target position faster. The JointSpring.damper force dampen...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f9a650f2c573
unity_docs
rendering
What is `Rendering.RenderQueue.Transparent` in Unity? Explain its purpose and usage.
RenderQueue.Transparent Description This render queue is rendered after Geometry and AlphaTest, in back-to-front order. Anything alpha-blended (i.e. shaders that don’t write to depth buffer) should go here (glass, particle effects). Additional resources: Material.renderQueue , Shader.renderQueue , subshader tags...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_29e13342d548
unity_docs
physics
What are the parameters of `Rigidbody2D.AddForce` in Unity?
Description Apply a force to the rigidbody. The force is specified as two separate components in the X and Y directions (there is no Z direction in 2D physics). The object will be accelerated by the force according to the law force = mass x acceleration - the larger the mass, the greater the force required to accelerat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4b885ae95249
unity_docs
input
What is `Input.mousePositionDelta` in Unity? Explain its purpose and usage.
Input.mousePositionDelta public static Vector3 mousePositionDelta ; Description The current mouse position delta in pixel coordinates. (Read Only). Note : This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_84b35345c60d_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Get a singleton instance of the Font Asset Utilities class. Signature: ```csharp public static TMP_FontAssetUtilities instance ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_432fbfae22e8
unity_docs
scripting
What is `DragAndDrop.StartDrag` in Unity? Explain its purpose and usage.
DragAndDrop.StartDrag Declaration public static void StartDrag (string title ); Description Start a drag operation. Initiates a drag operation with the current drag object state. Use paths and/or objectReferences to setup drag state. Additional resources: PrepareStartDrag , paths , objectReferences . `...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7e0943d5e864
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.maxCollisionShapes`.
ParticleSystem.CollisionModule.maxCollisionShapes public int maxCollisionShapes ; Description The maximum number of collision shapes Unity considers for particle collisions. It ignores excess shapes. Terrains take priority. Additional resources: ParticleSystem.collision . ```csharp using UnityEngine; using S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f4d671be60f9
unity_docs
performance
In Unity's 'Mono scripting back end', what is 'Domain reload' and how does it work?
The Unity Editor embeds Mono, so your C# code is managed by Mono and is subject to Mono’s constraints when running in the Editor’s Play mode. A key aspect of this is that entering and exiting Play mode or recompiling scripts trigger AppDomain reloads, which resets static state. You can configure how Unity enters Play m...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d097017ee808
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetBuildPropertyForAnyConfig`.
ByName . name The name of the build property. Returns string The specified build property value. Description Gets a build property value for the given name in all the build configurations for the specified target(s). If a property has multiple values, those are delimited by a space. Values for names LIBRARY...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_29b98dff9f60
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.LoadObjectAsync`.
ation A UnityEditor.AssetDatabaseLoadOperation which you can use to track the progress of the operation. Description Loads a specific Object and its dependencies from an Asset file asynchronously. All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png". Additional resources: Ass...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d48228c560c0
unity_docs
scripting
What is `UIElements.StyleCursor` in Unity? Explain its purpose and usage.
StyleCursor struct in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Implements interfaces: IStyleValue<T0> Description Style value that can be either a Cursor or a StyleKeyword . Properties Property Description keyword The style keyword. value The Cursor value. Constr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_221fc2474a37
unity_docs
scripting
What is `Projector.fieldOfView` in Unity? Explain its purpose and usage.
Projector.fieldOfView public float fieldOfView ; Description The field of view of the projection in degrees. This is the vertical field of view; horizontal FOV varies depending on the aspectRatio . Field of view is ignored when projector is orthographic (see orthographic ). Additional resources: projector c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0f97af6dbfa2
unity_docs
rendering
What are the parameters of `AssetImporters.AssetImportContext.GetOutputArtifactFilePath` in Unity?
Returns string The file path which can be used to create a new Artifact File. Description Returns the path where to write a new Artifact File with the given fileName. An Artifact File is part of the result of an importer and can contain any data that are not UnityEngine.Object. For example the 'info' Artifact File is r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cbad9b85779f
unity_docs
rendering
What is `Texture3D.CreateExternalTexture` in Unity? Explain its purpose and usage.
Texture3D.CreateExternalTexture Declaration public static Texture3D CreateExternalTexture (int width , int height , int depth , TextureFormat format , bool mipChain , IntPtr nativeTex ); Parameters Parameter Description nativeTex Native 3D texture object. width Width of texture in pixels. height...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_fa6eb785598e_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Array with Type.AssemblyQualifiedName Signature: ```csharp public string[] InheritedTypeNameArray ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_2b2a08802d6c
unity_docs
scripting
Show me a Unity C# example demonstrating `LightTransport.IDeviceContext.CreateEvent`.
ompletion status of asynchronous operations such as ReadBuffer and WriteBuffer. Each event can be used only once. After being passed to a read or write operation, it cannot be reused. Use Wait to block until an event completes, or IsCompleted to check completion status without blocking. Important: Events are single-us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af9dd28fc231
unity_docs
physics
Show me a Unity C# example demonstrating `ControllerColliderHit.rigidbody`.
ControllerColliderHit.rigidbody public Rigidbody rigidbody ; Description The rigidbody that was hit by the controller. Null if we didn't touch a rigidbody but a static collider. ```csharp using UnityEngine;public class Example : MonoBehaviour { // Activate the gravity of other object we touch void OnContro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d91d650e39e1
unity_docs
rendering
In Unity's 'Gizmos menu reference', what is 'Light Probe Visualization options' and how does it work?
Select which Light Probes to display in the Scene view. The default value is Only Probes Used By Selection . Property Function Only Probes Used By Selection Display only Light Probes that affect the current selection. All Probes No Cells Display all Light Probes. All Probes With Cells Display all Light Probes, and the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4c04daf49f43
unity_docs
physics
Show me a Unity C# example demonstrating `Collision.articulationBody`.
Collision.articulationBody public ArticulationBody articulationBody ; Description The ArticulationBody of the collider that your GameObject collides with (Read Only). This returns the ArticulationBody of the collider that your GameObject collides with. If the collider doesn't have an articulation body att...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_28cb793bcc4a
unity_docs
rendering
Show me a Unity C# example demonstrating `Texture2D.SetPixels32`.
RGB24_SIGNED RGB48 RGB48_SIGNED RGB565 RGB9e5Float RGBA32 RGBA32_SIGNED RGBA4444 RGBA64 RGBA64_SIGNED RGBAFloat RGBAHalf RGFloat RGHalf RHalf For all other formats, SetPixels32 fails. Unity throws an exception when SetPixels32 fails. Additional resources: SetPixels , SetPixelData , GetPixels32 , ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bba0550126c1
unity_docs
scripting
In Unity's 'Write and run coroutines', what is 'Starting and stopping coroutines' and how does it work?
To set a coroutine running, use the StartCoroutine method: ```csharp void Update() { if (Input.GetKeyDown("f")) { StartCoroutine(Fade()); } } ``` To stop a coroutine, use StopCoroutine and StopAllCoroutines . A coroutine also stops if: The value of GameObject.activeSelf becomes false for the GameObject the script i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a47f0decf0c5
unity_docs
editor
What is `Rendering.GraphicsSettings.GetGraphicsSettings` in Unity? Explain its purpose and usage.
GraphicsSettings.GetGraphicsSettings Declaration public static Object GetGraphicsSettings (); Returns Object Returns the GraphicsSettings object. Description Provides a reference to the GraphicSettings object. This method is used by internal code to implement undo functionality in the Unity Editor. Additi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4a1e04725075
github
scripting
Write a Unity Editor script for Search Inspector Service
```csharp using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using UnityEditor; using UnityEngine; using static FieldSearch.Core.Base.BaseSearch; namespace FieldSearch.Core.Inspectors.Controllers { /// <summary> /// Default Search Service for Inspectors. /// Using <see cref...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c882ad7eb902
unity_docs
scripting
What is `Flare` in Unity? Explain its purpose and usage.
Flare class in UnityEngine / Inherits from: Object / Implemented in: UnityEngine.CoreModule Description A flare asset. Read more about flares in the components reference . The flare class has no properties. It needs to be setup up in the inspector. You can reference flares and assign them to a Light at ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_659652d64f33
unity_docs
scripting
In Unity's 'Rig tab Import Settings reference', what is 'Humanoid animation types' and how does it work?
With rare exceptions, humanoid models have the same basic structure. This structure represents the major articulated parts of the body: the head and limbs. The first step to using Unity’s Humanoid animation features is to set up and configure an Avatar . Unity uses the Avatar to map the simplified humanoid bone structu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bb723344da6d
unity_docs
scripting
What is `UIElements.MouseOutEvent` in Unity? Explain its purpose and usage.
MouseOutEvent class in UnityEngine.UIElements / Inherits from: UIElements.MouseEventBase_1 / Implemented in: UnityEngine.UIElementsModule Description Event sent when the mouse pointer exits an element. The event trickles down and bubbles up. Inherited Members Properties Property Description bubbles Re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f6ceb241ac15
unity_docs
scripting
What is `UnityAPICompatibilityVersionAttribute.ctor` in Unity? Explain its purpose and usage.
UnityAPICompatibilityVersionAttribute Constructor Declaration public UnityAPICompatibilityVersionAttribute (string version , bool checkOnlyUnityVersion ); Parameters Parameter Description version Unity version that this assembly is compatible with. checkOnlyUnityVersion Must be set to true. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_833ac7917d4d
unity_docs
scripting
What is `Unity.IntegerTime.DiscreteTimeTimeExtensions.Min` in Unity? Explain its purpose and usage.
DiscreteTimeTimeExtensions.Min Declaration public static Unity.IntegerTime.DiscreteTime Min ( Unity.IntegerTime.DiscreteTime lhs , Unity.IntegerTime.DiscreteTime rhs ); Parameters Parameter Description lhs The first operand. rhs The second operand. Returns DiscreteTime The minimum of the two spec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9757a93d85bf
unity_docs
physics
In Unity's 'Types of 2D primitive GameObjects', what is 'Default sprite dimensions' and how does it work?
The default sprite size of the 2D primitives is 256 X 256 pixels , with a pixels-per-unit (PPU) size of 256. This combination of dimensions and PPU value makes the sprite’s size equal to one Unity unit in the scene . There are two exceptions - the Capsule primitive is 256 X 512 pixels (1:2 units) in size, and the Isome...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8b565e08b886
unity_docs
animation
In Unity's '1D Blending', what is 'Thresholds' and how does it work?
You can change the threshold value of a motion by clicking on its corresponding blue pyramid in the diagram and dragging it left or right. If the “Automate Thresholds” toggle is not enabled, you can also edit the threshold value of a motion in the motion list by typing in a number in the number field in the Threshold c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d12b87b7c3c9_doc_0
github
scripting
What does `TryEstimateExtensionFieldType` do in this Unity script? Explain its purpose and signature.
フィールドの初期化を行っている式の見た目からフィールドの型を推定する。 Signature: ```csharp public static bool TryEstimateExtensionFieldType(Node node, out ExtensionFieldType result) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_390cfaf07a44
unity_docs
scripting
What is `UIElements.UxmlIntAttributeDescription` in Unity? Explain its purpose and usage.
UxmlIntAttributeDescription class in UnityEngine.UIElements / Inherits from: UIElements.TypedUxmlAttributeDescription_1 / Implemented in: UnityEngine.UIElementsModule Description Describes a UXML int attribute. Properties Property Description defaultValueAsString The default value for the attribute,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7de9995610a8
unity_docs
scripting
Show me a Unity C# example demonstrating `GUISkin.verticalScrollbar`.
GUISkin.verticalScrollbar public GUIStyle verticalScrollbar ; Description Style used by default for the background part of GUI.VerticalScrollbar controls. ```csharp using UnityEngine;public class Example : MonoBehaviour { // Modifies only the default background of the // vertical scrollbar of the current...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0d8b7b70b23e
unity_docs
rendering
In Unity's 'Content output of a build', what is 'Shared asset grouping' and how does it work?
The order of the scenes in the Scene List in your project determines the way that Unity packs together shared assets as follows: Unity processes scenes in the exact order listed in File > Build Profiles > Scene List . Unity saves each object in the scene file to the corresponding level file, unless it’s an object that’...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7ceb52c41e5b
unity_docs
physics
Give me an overview of the `EditorApplication` class in Unity.
EditorApplication class in UnityEditor Description Main Application class. Static Properties Property Description applicationContentsPath Path to the Unity editor contents folder. (Read Only) applicationPath Gets the path to the Unity Editor application. (Read Only) contextualPropertyMenu Callback raised whe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1cc69074322e
unity_docs
xr
What is `Android.PermissionCallbacks` in Unity? Explain its purpose and usage.
PermissionCallbacks class in UnityEngine.Android / Inherits from: AndroidJavaProxy / Implemented in: UnityEngine.AndroidJNIModule Description Contains callbacks invoked when permission request is executed using Permission.RequestUserPermission . Events Event Description PermissionDenied Triggered when the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f0de3d1f5d7a
unity_docs
rendering
Explain 'Performance tips for trees' in Unity.
To improve the performance of trees: Performance depends on the polygon count of your tree model. Test your trees on your platform, and create simpler trees if performance is low. Don’t create too many leaves and branches, because this can reduce performance. Each Terrain tile has settings for tree drawing, such as the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2e4201ee7ed7
unity_docs
scripting
What is `UIElements.TextElement.parseEscapeSequences` in Unity? Explain its purpose and usage.
TextElement.parseEscapeSequences public bool parseEscapeSequences ; Description Determines how escape sequences are displayed. When set to true , escape sequences (such as \n , \t ) are parsed and transformed into their corresponding characters. For example, '\n' will insert a new line. When set to fals...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc3ff2c87ae0
unity_docs
editor
What are the parameters of `Actions.EditorAction.Finish` in Unity?
Description Finishes an EditorAction with a specific result. Call this method to forcibly end an active EditorAction with a EditorActionResult . A common use is when implementing atomic actions that do not require interactivity. ```csharp using UnityEngine; using UnityEditor; using UnityEditor.Actions; public class Si...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ac4475661729_doc_10
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Represents an object which can be initialized using ten arguments.-derived classes that implement this interface can be instantiated with arguments using the function.-derived classes that implement this interface can be added to a with arguments using the GameObject.AddComponent function.These functions can automatica...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_01662b2d9a6c
unity_docs
rendering
Explain 'Lighting window reference' in Unity.
The Lighting window (menu: Window > Rendering > Lighting ) is the main control point for Unity’s lighting features. You can use the Lighting window to adjust settings related to the lighting in your Scene, and to optimise your precomputed lighting data for quality, bake time, and storage space. ## Related APIs You ca...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2610709a6303
unity_docs
scripting
Show me a Unity C# example demonstrating `Animations.TransformStreamHandle`.
TransformStreamHandle struct in UnityEngine.Animations / Implemented in: UnityEngine.AnimationModule Description Position, rotation and scale of an object in the AnimationStream . ```csharp using UnityEngine; using UnityEngine.Playables; using UnityEngine.Animations;public struct TransformStreamHandleJob : IAn...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c8391a38b6c3
unity_docs
rendering
In Unity's 'Use built-in shader functions in the Built-In Render Pipeline', what is 'Forward rendering helper functions' and how does it work?
These functions are only useful when using forward rendering (ForwardBase or ForwardAdd pass types). Function: Description: float3 WorldSpaceLightDir (float4 v) Computes world space direction (not normalized) to light, given object space vertex position. float3 ObjSpaceLightDir (float4 v) Computes object space directio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3283c8cdb26e
unity_docs
input
What is `TouchScreenKeyboard` in Unity? Explain its purpose and usage.
TouchScreenKeyboard class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Interface for on-screen keyboards. Only native iPhone, Android, and Windows Store Apps are supported. This interface allows to display different types of the keyboard: ASCII, Numbers, URL, Email, and others. Because th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f8fe4b1e11e6
unity_docs
scripting
In Unity's 'Loading assets from AssetBundles', what is 'Loading assets' and how does it work?
Once an AssetBundle is loaded, you can use the AssetBundle class to load individual assets from it as follows. Use LoadAsset to load a single asset, for example the root GameObject of a prefab , synchronously: ``` GameObject gameObject = loadedAssetBundle.LoadAsset<GameObject>(assetName); ``` Use LoadAllAssets to load ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_da0851241c0d
unity_docs
rendering
What is `SceneView.CameraSettings.easingEnabled` in Unity? Explain its purpose and usage.
SceneView.CameraSettings.easingEnabled public bool easingEnabled ; Description Enables Camera movement easing in the SceneView . This makes the Camera ease in when it starts moving, and ease out when it stops.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9b7c1ec4bddb
unity_docs
rendering
What is `Rendering.MetadataValue.Value` in Unity? Explain its purpose and usage.
MetadataValue.Value public uint Value ; Description Unity passes this uint32 value to the shader for this property. The value is shared between all instances in the batch. Usage example: provide a buffer address for the property.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4810e4dcb3ae
unity_docs
scripting
What is `Video.VideoPlayer.loopPointReached` in Unity? Explain its purpose and usage.
VideoPlayer.loopPointReached Parameters Parameter Description value The instance of the VideoPlayer that invokes the event. Description The VideoPlayer emits this event when the video reaches the end of its playback. If you set the VideoPlayer.isLooping property to true , this event makes the video play aga...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_042b471b25a0
unity_docs
scripting
Explain 'Add class library references to .NET Framework' in Unity.
By default, Unity references the following assemblies when your project uses the .NET Framework API compatibility level : mscorlib.dll System.dll System.Core.dll System.Runtime.Serialization.dll System.Xml.dll System.Xml.Linq.dll If your Unity project uses a part of the .NET class library API that Unity doesn’t compile...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f0baf2f3c11d
unity_docs
scripting
Explain 'Customizing new scene creation' in Unity.
To run custom code when Unity instantiates a new scene from a template, create a Scene Template Pipeline script and connect it to the template. Each time you create a new scene from the template, Unity creates a new instance of the pipeline script as well. To connect the script to a template: Inspect the template to ed...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e3af96dabe61
unity_docs
scripting
What are the parameters of `Material.CopyMatchingPropertiesFromMaterial` in Unity?
Description Copies properties, keyword states and settings from mat to this material, but only if they exist in both materials. This method copies the following properties if they exist in both materials: Serialized material properties. Keyword states, if the keywords exist in both shaders. Material settings: Material....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_380abf58fd59
unity_docs
rendering
Explain 'Stamp Terrain' in Unity.
Use the Stamp Terrain tool to stamp a brush shape on top of the current heightmap . In the Terrain Inspector , click on the Paint Terrain icon and select Stamp Terrain from the drop-down menu. To access the Stamp Terrain tool from an overlay: In the Terrain Tools overlay, select Sculpt Mode . Sculpt Mode tools display ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f754be0f8ccb
unity_docs
scripting
What is `UIElements.UxmlAttributeConverter_1.ToString` in Unity? Explain its purpose and usage.
UxmlAttributeConverter<T0>.ToString Declaration public string ToString (T value ); Parameters Parameter Description value The value to be converted into a string. Returns string A string representation of the type. Description Provides a string representation of a type. Returns a string that rep...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_42838dd23556
unity_docs
rendering
Explain 'Creating and editing Terrains' in Unity.
To add a Terrain GameObject to your Scene, select GameObject > 3D Object > Terrain from the menu. This also adds a corresponding Terrain Asset to the Project view. When you do this, the landscape is initially a large, flat plane. The Terrain’s Inspector window provides a number of tools to create detailed landscape fea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8614766144a2
unity_docs
scripting
What is `UIElements.FocusEventBase_1` in Unity? Explain its purpose and usage.
FocusEventBase<T0> class in UnityEngine.UIElements / Inherits from: UIElements.EventBase_1 / Implemented in: UnityEngine.UIElementsModule Implements interfaces: IFocusEvent Description Base class for focus related events. Properties Property Description direction Direction of the focus change. foc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_af07ac0d0ee2
unity_docs
performance
Explain 'Configure managed code stripping' in Unity.
The Managed Stripping Level property determines which rules the Unity linker follows when it analyzes and strips your application’s code. Increasing the managed stripping level expands the scope of the linker’s search for unused code but also increases build time. To change the Managed Stripping Level property: Go to E...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9dc73bcd7a65
unity_docs
input
What is `UIElements.TextInputBaseField_1.emojiFallbackSupport` in Unity? Explain its purpose and usage.
TextInputBaseField<T0>.emojiFallbackSupport public bool emojiFallbackSupport ; Description Specifies the order in which the system should look for Emoji characters when rendering text. If this setting is enabled, the global Emoji Fallback list will be searched first for characters defined as Emoji in the Unic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2714e15e59d0
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.R10G10B10_XRSRGBPack32` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.R10G10B10_XRSRGBPack32 Description A four-component, 32-bit packed unsigned normalized format that has a 10-bit R component in bits 20..29, a 10-bit G component in bits 10..19, and a 10-bit B component in bits 0..9...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bd0a8eb9e977
unity_docs
animation
Give me an overview of the `ModelImporterAnimationType` class in Unity.
ModelImporterAnimationType enumeration Description Animation mode for ModelImporter . Additional resources: ModelImporter.animationType . Properties Property Description None Generate no animation data. Legacy Generate a legacy animation type. Generic Generate a generic animator. Human Generate a human an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_add3b7365545
unity_docs
rendering
What is `TextureFormat.RGB48` in Unity? Explain its purpose and usage.
TextureFormat.RGB48 Description Three channel (RGB) texture format, 16-bits unsigned integer per channel. Note that not all graphics cards support all texture formats, use SystemInfo.SupportsTextureFormat to check. Additional resources: Texture2D.format , texture assets .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_acf337b463ec
unity_docs
rendering
What is `Rendering.DrawingSettings.perObjectData` in Unity? Explain its purpose and usage.
DrawingSettings.perObjectData public Rendering.PerObjectData perObjectData ; Description What kind of per-object data to setup during rendering. Additional resources: PerObjectData , ScriptableRenderContext.DrawRenderers.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_c2200db56966
github
scripting
Write a Unity C# script called Open XR Math
```csharp // SPDX-FileCopyrightText: 2024 Michael Nisbet <me@mikesky.dev> // SPDX-License-Identifier: MIT using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.OpenXR.NativeTypes; namespace OpenXR.Extensions { public static class OpenXRMath { public static...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.