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_1e4145958053
unity_docs
physics
What is `UIElements.BaseVerticalCollectionView.itemsSourceChanged` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.itemsSourceChanged Description Raised when the data source of a vertical collection view is assigned a new reference or new type. Use this event to handle changes to the vertical collection view's data source, ensuring the UI appropriately reflects the new data. For example, if the d...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af4de3eee4b7
unity_docs
rendering
Show me a Unity C# example demonstrating `ParticleSystem.LightsModule.alphaAffectsIntensity`.
ParticleSystem.LightsModule.alphaAffectsIntensity public bool alphaAffectsIntensity ; Description Toggle whether the system multiplies the particle alpha by the light intensity when it computes the final light intensity. This is useful to fade the Lights out at the same time as the particles, to avoid popping....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_da028d4d771a
unity_docs
performance
Explain 'Get started with Dedicated Server' in Unity.
Learn about the prerequisites to get started with building your application on Dedicated Server platform. Topic Description Requirements Describes what you need to install before you proceed to build your application. Player settings Lists the Player settings that aren’t relevant for the Dedicated Server platform while...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ae7efdf73300
github
scripting
Write a Unity C# ScriptableObject for Readme
```csharp using System; using UnityEngine; namespace Samples.GameplaySequence { public class Readme : ScriptableObject { public Texture2D icon; public string title; public Section[] sections; public bool loadedLayout; [Serializable] public class Section ...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_06b373e0985d
unity_docs
scripting
What is `Presets.Preset.DataEquals` in Unity? Explain its purpose and usage.
Preset.DataEquals Declaration public bool DataEquals ( Object target ); Parameters Parameter Description target The target object to be compared against the Preset. Returns bool Returns true when the target object has the same serialized values as the Preset. Otherwise, returns false. Description De...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_14546d0230e2
unity_docs
scripting
What is `Vector2.Scale` in Unity? Explain its purpose and usage.
Vector2.Scale Declaration public static Vector2 Scale ( Vector2 a , Vector2 b ); Description Multiplies two vectors component-wise. Every component in the result is a component of a multiplied by the same component of b . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start(...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_198946fbba7b
unity_docs
scripting
What is `UIElements.UxmlIntAttributeDescription.GetValueFromBag` in Unity? Explain its purpose and usage.
UxmlIntAttributeDescription.GetValueFromBag Declaration public int GetValueFromBag ( UIElements.IUxmlAttributes bag , UIElements.CreationContext cc ); Parameters Parameter Description bag The bag of attributes. cc The context in which the values are retrieved. Returns int The value of the attribute...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_551c25ef4813
unity_docs
scripting
What is `Microphone.IsRecording` in Unity? Explain its purpose and usage.
Microphone.IsRecording Declaration public static bool IsRecording (string deviceName ); Parameters Parameter Description deviceName The name of the device. Description Query if a device is currently recording. If you pass a null or empty string for the device name then the default microphone will be used...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3796f69064cc
unity_docs
editor
What is `ImportAssetOptions.ForceSynchronousImport` in Unity? Explain its purpose and usage.
ImportAssetOptions.ForceSynchronousImport Description Import all assets synchronously. By default some assets can be imported asynchronously (e.g. scripts can be compiled in the background). In some cases all importing needs to be synchronous; use this flag then. For example, when importing a scripts + prefabs, scr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_21219fd991ca
unity_docs
physics
What is `IMGUI.Controls.JointAngularLimitHandle.yMax` in Unity? Explain its purpose and usage.
JointAngularLimitHandle.yMax public float yMax ; Description Returns or specifies the maximum angular motion about the y-axis. The value returned by this property depends on the current value of the yMotion property. If it is ConfigurableJointMotion.Locked , then it will always return 0. If it is Configurab...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c79b4a092279
unity_docs
rendering
Give me an overview of the `LazyLoadReference_1` class in Unity.
LazyLoadReference<T0> struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Serializable lazy reference to a UnityEngine.Object contained in an asset file. Allows an asset to reference another asset but delays loading the referenced asset until it is used, instead of loading it when the ref...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4efd279148f3
unity_docs
scripting
Show me a Unity C# example demonstrating `CharacterController.Move`.
A collision constrains the Move from taking place. The return, CollisionFlags , indicates the direction of a collision: None, Sides, Above, and Below. CharacterController.Move does not use gravity. The example below demonstrates how to use CharacterController.Move . Update causes a Move to re-position the pla...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_577985ea577c
unity_docs
scripting
What is `BuildPipeline.GetBuildTargetName` in Unity? Explain its purpose and usage.
BuildPipeline.GetBuildTargetName Declaration public static string GetBuildTargetName ( BuildTarget targetPlatform ); Parameters Parameter Description targetPlatform An instance of the BuildTarget enum. Returns string Target platform name represented by the passed in BuildTarget . Description Give...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9ca515576f06
unity_docs
xr
Explain 'Platform development' in Unity.
Before starting out with the Unity Editor, you might want to familiarize yourself with the platforms that you can create your projects in. Unity supports most of the leading desktop, web, and mobile platforms as follows: Topic Description Cross-platform features and considerations Lists the features that are applicable...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6b02bbc15f73
unity_docs
physics
What is `VersionControl.ConfigField` in Unity? Explain its purpose and usage.
ConfigField class in UnityEditor.VersionControl Description Describes the configuration fields of the version control that the user has selected in the Unity Editor. For example: with Perforce enabled this can include credentials like the username, password, workspace and server. Properties Property Descriptio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_23b8f7859716
unity_docs
scripting
What is `Playables.PlayableExtensions.SetOutputCount` in Unity? Explain its purpose and usage.
PlayableExtensions.SetOutputCount Declaration public static void SetOutputCount (U playable , int value ); Parameters Parameter Description playable The Playable used by this operation. Description Changes the number of outputs supported by the Playable . Use this templated extension method on any typ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc8e34528f0c
unity_docs
rendering
What is `HandleUtility.DistanceToPolyLine` in Unity? Explain its purpose and usage.
HandleUtility.DistanceToPolyLine Declaration public static float DistanceToPolyLine (params Vector3[] points ); Description Returns the distance in pixels from the mouse pointer to a polyline. Calculates the screen space distance from the mouse pointer to the multi segment line that goes through the given worl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83a3e2ef2bd6
unity_docs
rendering
What is `TextureImporterSettings.cubemapConvolution` in Unity? Explain its purpose and usage.
TextureImporterSettings.cubemapConvolution public TextureImporterCubemapConvolution cubemapConvolution ; Description Convolution mode. Defines if Cubemap texture is useful for skybox, image based diffuse lighting or specular reflections. Additional resources: TextureImporterCubemapConvolution , RenderSett...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_48dee7c028bf
unity_docs
rendering
In Unity's 'Disable writing to the depth buffer in a shader', what is 'Examples' and how does it work?
This example code demonstrates the syntax for using this command in a Pass block. ``` Shader "Examples/CommandExample" { SubShader { // The rest of the code that defines the SubShader goes here. Pass { // Disables writing to the depth buffer for this Pass ZWrite Off // The rest of the code that defines the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd44fbb4ee3c
unity_docs
animation
What is `Animations.AnimationHumanStream.GetGoalPosition` in Unity? Explain its purpose and usage.
AnimationHumanStream.GetGoalPosition Declaration public Vector3 GetGoalPosition ( AvatarIKGoal index ); Parameters Parameter Description index The AvatarIKGoal that is queried. Returns Vector3 The position of this IK goal. Description Returns the position of this IK goal in world space. Some play...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_343b0392cd3e
unity_docs
scripting
Show me a Unity code example for 'Naming scripts'.
it’s good practice in C# programming to organize your classes under namespaces. A namespace is a collection of classes and the namespace prefixed to a class name provides a complete, unambiguous way to refer to the class. Refer to the Microsoft documentation on namespaces for more information. In the example below, the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_207cb6698714
unity_docs
editor
Give me an overview of the `AndroidAutoRotationBehavior` class in Unity.
AndroidAutoRotationBehavior enumeration Description Options to control the application window orientation when Default orientation is set to Auto rotation . ```csharp using UnityEditor; using UnityEngine; using UnityEditor; using UnityEditor.Build;public class AutoRotationBehaviorSample : MonoBehaviour { [Menu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a3fbc60129ac
unity_docs
math
What is `ComputeShader.SetVectorArray` in Unity? Explain its purpose and usage.
ComputeShader.SetVectorArray Declaration public void SetVectorArray (string name , Vector4[] values ); Declaration public void SetVectorArray (int nameID , Vector4[] values ); Parameters Parameter Description name Variable name in shader code. nameID Property name ID, use Shader.PropertyToID to g...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a09e8db2649b
unity_docs
rendering
In Unity's 'Upgrade to Unity 2023.2', what is 'Page outline' and how does it work?
Environment lighting: Ambient probe and skybox Reflection Probe are no longer baked by default Auto-generated lighting has been removed DepthAuto, ShadowAuto and VideoAuto graphics formats are now obsolete Mipmap Limits no longer affect runtime Textures by default Enhanced custom controls creation with UXML Assets/Crea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_792fff17e5cd
unity_docs
math
What is `LineUtility.Simplify` in Unity? Explain its purpose and usage.
LineUtility.Simplify Declaration public static void Simplify (List<Vector3> points , float tolerance , List<int> pointsToKeep ); Declaration public static void Simplify (List<Vector3> points , float tolerance , List<Vector3> simplifiedPoints ); Declaration public static void Simplify (List<Vector2> po...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ec0eca71069c
unity_docs
rendering
Explain 'Writing custom shaders' in Unity.
Resources for creating your own shaders using Shader Graph, or High-Level Shader Language (HLSL) and ShaderLab . Page Description Creating shaders with Shader Graph Learn about Shader Graph, a tool that lets you create shaders without writing code. Writing shaders in code Resources for writing custom shader code in hig...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3863f54e8078
github
scripting
Write a Unity C# MonoBehaviour script called Mod Bus Connection Instance
```csharp /* * Copyright (c) University of Sheffield AMRC 2025. * See LICENSE file */ using System; using AMRC.UnityModBus.Classes; using UnityEngine; using UnityEngine.Events; namespace AMRC.UnityModBus.UnityComponents { /// <summary> /// A GameObject representing a connection to a device over ModBus TCP ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_38627c181f7b
unity_docs
editor
What is `Profiling.FrameDataView.GetCounterValueAsLong` in Unity? Explain its purpose and usage.
FrameDataView.GetCounterValueAsLong Declaration public long GetCounterValueAsLong (int markerId ); Parameters Parameter Description markerId Marker identifier. Returns long Returns the counter value as long . Description Gets the last value of a counter marker in the frame as a long data type. Use ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e1f9b5ad132
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.AddCopyFilesBuildPhaseBeforeTargetPostprocess` in Unity?
Returns string Returns the GUID of the new phase. Description Creates a new Copy Files build phase for a given target. If a Copy Files build phase with the same name, dstPath , and subfolderSpec is already configured for the target, the function returns the existing phase. The new phase is placed right before Unity's p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2878c70f1c8
unity_docs
scripting
What is `AssetImporters.ScriptedImporterAttribute.importQueuePriority` in Unity? Explain its purpose and usage.
ScriptedImporterAttribute.importQueuePriority public int importQueuePriority ; Description Enables controlling the ordering of asset import based on type. Positive values delay the processing of source asset files while negative values place them earlier in the import process. This allows for basic dependency o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_339eb2d93a7b_doc_1
github
scripting
What does `SynchronizeJobDataEveryFrame` do in this Unity script? Explain its purpose and signature.
Whether job data should be synchronized every frame.By default, returns false.Override in subclasses implementing and return trueto automatically register objects for job data synchronization every frame. Signature: ```csharp public virtual bool SynchronizeJobDataEveryFrame => false; ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_5c95752af014
unity_docs
editor
Show me a Unity C# example demonstrating `UIElements.DropdownMenu.AppendSeparator`.
DropdownMenu.AppendSeparator Declaration public void AppendSeparator (string subMenuPath ); Parameters Parameter Description subMenuPath The submenu path to add the separator to. Path components are delimited by forward slashes ('/'). Description Adds a separator line in the menu. The separator is add...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2eeac861ab36
unity_docs
rendering
What is `LightTransport.RadeonRaysContext.DestroyEvent` in Unity? Explain its purpose and usage.
RadeonRaysContext.DestroyEvent Declaration public void DestroyEvent ( LightTransport.EventID id ); Parameters Parameter Description id ID of the event to destroy. Description Destroy the event with the given ID. You should call this to free temporary resources associated with an event. Attempting to use t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8e1caa1b0bea
unity_docs
performance
What are the parameters of `Unity.Collections.NativeArray_1.ReadOnly.UnsafeElementAt` in Unity?
Returns T A ref readonly to a value of type T . Description Provides read-only access to ReadOnly elements by index. This method is dangerous because it returns reference to the memory that can be destroyed (with Dispose, for instance) and if the ref local is accessed that might lead to undefined results including cra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6753f7c8e7fa
github
scripting
Write a Unity C# physics script for Player References
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(PlayerInput))] [RequireComponent(typeof(PlayerClimb))] [RequireComponent(typeof(PlayerWalk))] public class PlayerReferences : MonoBehaviour { public GameObject head; public GameObject leftHand; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_df037677f612
unity_docs
scripting
In Unity's 'Native plug-ins', what is 'Example' and how does it work?
A simple native library with a single function might have code that looks like this: float ExamplePluginFunction () { return 5.0F; } To access this code from within Unity, use the following C# script: ```csharp using UnityEngine; using System.Runtime.InteropServices; class ExampleScript : MonoBehaviour { #if UNITY_IP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e304bf032e37
unity_docs
xr
Explain 'Released packages' in Unity.
“Released” packages are fully supported packages that have undergone testing with a specific version of the Unity Editor, and all other packages released for that version. The package also has complete and accurate documentation, an updated changelog, and valid licensing. Packages that Unity has verified to work with t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1edee7fdda5a
unity_docs
scripting
What is `AssetDatabase.RemoveScriptableObjectsWithMissingScript` in Unity? Explain its purpose and usage.
AssetDatabase.RemoveScriptableObjectsWithMissingScript Declaration public static int RemoveScriptableObjectsWithMissingScript (string assetPath ); Parameters Parameter Description assetPath The path to the asset file to check. Returns int The number of ScriptableObject-derived objects in the file which w...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6562bb222815
unity_docs
scripting
What is `Mesh.Optimize` in Unity? Explain its purpose and usage.
Mesh.Optimize Declaration public void Optimize (); Description Optimizes the Mesh data to improve rendering performance. This function causes the geometry and vertices of the mesh to be reordered internally in an attempt to improve vertex cache utilisation on the graphics hardware and thus rendering performanc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d7dbed032479
unity_docs
input
What is `UIElements.MouseUpEvent.GetPooled` in Unity? Explain its purpose and usage.
MouseUpEvent.GetPooled Declaration public static UIElements.MouseUpEvent GetPooled ( Event systemEvent ); Parameters Parameter Description systemEvent An IMGUI mouse event. Returns MouseUpEvent An initialized event. Description Gets an event from the event pool and initializes it with the given v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5e847e4d4cb4
unity_docs
scripting
What is `Rendering.IndexFormat.UInt16` in Unity? Explain its purpose and usage.
IndexFormat.UInt16 Description 16 bit mesh index buffer format. This format supports meshes with up to 65535 vertices. Note: the maximum possible vertex index (for example, 0xFFFF for a 16 bit index format) might not be usable. Some graphics APIs and GPUs skip rendering triangles with maximum vertex indices. Addit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a6e381b22b30
unity_docs
scripting
What is `Unity.Android.Gradle.Manifest.PermissionGroup` in Unity? Explain its purpose and usage.
PermissionGroup class in Unity.Android.Gradle.Manifest / Inherits from: Unity.Android.Gradle.Manifest.BaseElement Description The C# definition of the <permission-group> Android Manifest element. For more information about the element, see Android's documentation: PermissionGroup element Properties Prope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e9f4a85f3264
unity_docs
physics
Show me a Unity C# example demonstrating `Collider.OnCollisionStay`.
don't use collisionInfo in the function, leave out the collisionInfo parameter as this avoids unneccessary calculations. Notes: Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached. Collision events are sent to disabled MonoBehaviours, to allow enabling Behaviours in respon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_adae12be2654
unity_docs
rendering
What is `Mesh.GetIndices` in Unity? Explain its purpose and usage.
Mesh.GetIndices Declaration public int[] GetIndices (int submesh , bool applyBaseVertex = true); Parameters Parameter Description submesh The sub-mesh index. See subMeshCount . applyBaseVertex True (default value) will apply base vertex offset to returned indices. Returns int[] Array with face indi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_309bfc095d00
unity_docs
physics
What is `PhysicsScene.OverlapCapsule` in Unity? Explain its purpose and usage.
PhysicsScene.OverlapCapsule Declaration public int OverlapCapsule ( Vector3 point0 , Vector3 point1 , float radius , Collider[] results , int layerMask = AllLayers, QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal); Parameters Parameter Description point0 The ce...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4c3d4551c6de
unity_docs
editor
Show me a Unity C# example demonstrating `Search.SearchIndexer.skipEntryHandler`.
SearchIndexer.skipEntryHandler public Func<string,bool> skipEntryHandler ; Description Handler used to skip entries. ```csharp using System; using UnityEditor; using UnityEditor.Search; using UnityEngine; static class Example_SearchIndexer_skipEntryHandler { [MenuItem("Examples/SearchIndexer/skipEntryHandler"...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5aa1f36f4663
unity_docs
scripting
What is `Animator.GetBool` in Unity? Explain its purpose and usage.
Animator.GetBool Declaration public bool GetBool (string name ); Declaration public bool GetBool (int id ); Parameters Parameter Description name The parameter name. id The parameter ID. Returns bool The value of the parameter. Description Returns the value of the given boolean parameter. Re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e1f66c2c3460
unity_docs
scripting
What is `EditorTools.EditorToolContext` in Unity? Explain its purpose and usage.
EditorToolContext class in UnityEditor.EditorTools / Inherits from: ScriptableObject Description Use this class to implement specialized versions of the built-in transform tools. Built-in transform tools include Move, Rotate, Scale, Rect, and Transform. ```csharp using System; using System.Collections.Generic; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fcf886294e3b
unity_docs
scripting
What is `Video.VideoPlayer.StepForward` in Unity? Explain its purpose and usage.
VideoPlayer.StepForward Declaration public void StepForward (); Description Immediately advance the current time by one frame. If the video is currently playing, this method will pause the video before it advances to the next frame. However, if the VideoPlayer isn't prepared, this method will trigger preparatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4dab6ebe661a
unity_docs
rendering
Explain 'Configure a skybox with a Skybox Shader' in Unity.
Unity provides multiple Skybox Shaders for you to use. Each Shader uses a different set of properties and generation techniques. Each Shader falls into one of the following two categories: Note: The High Definition Render Pipeline (HDRP) does not support any of the above Shaders and instead includes multiple sky genera...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7c3d54625b36
unity_docs
scripting
What is `PropertyAttribute.order` in Unity? Explain its purpose and usage.
PropertyAttribute.order public int order ; Description Optional field to specify the order that multiple DecorationDrawers should be drawn in. ```csharp using UnityEngine;public class Example : MonoBehaviour { [Space(10, order = 0)] [Header("Header with some space around it", order = 1)] [Space(40, order = 2...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97debecaf019
unity_docs
input
What is `Unity.Android.Gradle.Manifest.ConfigChanges` in Unity? Explain its purpose and usage.
ConfigChanges enumeration Description Mirrors the ConfigChanges enum. For more information about the attribute, see Android's documentation: ConfigChanges attribute Properties Property Description Mcc Mirrors android:configChanges="mcc". Mnc Mirrors android:configChanges="mnc". Locale Mirrors android:co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bb5416629ecd
unity_docs
scripting
Explain 'Build and deliver for QNX' in Unity.
Build and deliver your Unity application for QNX. Topic Description QNX Build Profiles reference Reference documentation for QNX Build Profiles . Build for QNX from the command line Build your Unity project from the command line. Deploy a QNX project Deploy your project for QNX.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4fd1b3d8d8f4
unity_docs
physics
What is `Rigidbody2D.SlideResults.slideHit` in Unity? Explain its purpose and usage.
Rigidbody2D.SlideResults.slideHit public RaycastHit2D slideHit ; Description The specific contact found when a slide movement is performed with Rigidbody2D.Slide . When a slide along a surface occurs, the slide may hit a surface tangent to the movement. This RaycastHit2D represents that contact. It is poss...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5990189a286c
unity_docs
rendering
Give me an overview of the `TextureMipmapLimitSettings` class in Unity.
TextureMipmapLimitSettings struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Structure that represents texture mipmap limit settings. This code example illustrates how to modify TextureMipmapLimitSettings from script. ```csharp #if UNITY_EDITOR using UnityEngine; using UnityEditor;pu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bfe23b7d3d0e
unity_docs
rendering
Explain 'USS properties' in Unity.
A USS property assigns a style or behavior to a VisualElement . You can specify values for a USS property. Topic Description USS property data types USS data types define typical values accepted by USS properties and functions. USS common properties Describes the most common USS properties, their syntax and accepted va...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_57eeb9e9c3ff
unity_docs
rendering
What is `LightTransport.RadeonRaysProbeIntegrator.SetProgressReporter` in Unity? Explain its purpose and usage.
RadeonRaysProbeIntegrator.SetProgressReporter Declaration public void SetProgressReporter ( LightTransport.BakeProgressState progress ); Parameters Parameter Description progress BakeProgressState tracker to set on the probe integrator. Description Set progress tracker. Set a BakeProgressState on the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f3ea0a2466ba_doc_1
github
scripting
What does `GetDefaultJsonSettings` do in this Unity script? Explain its purpose and signature.
The default for this simple load save implementation is to preserve references.This requires less space for JSON on the disk, but also references can be preservedwhen you load data again, so that if you compare two classes Fruit == Fruit, if theyhappen to be the same class instance, the comparison will yield true.Witho...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_78c1528042b2
unity_docs
editor
Show me a Unity C# example demonstrating `Profiling.FrameDataView.GetCounterValueAsDouble`.
w.GetCounterValueAsDouble Declaration public double GetCounterValueAsDouble (int markerId ); Parameters Parameter Description markerId Marker identifier. Returns double Returns the counter value as double . Description Gets the last value of a counter marker in the frame as a double data type'. Use...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f967ea1ce9c9_doc_0
github
scripting
What does `UpdateAsObservable` do in this Unity script? Explain its purpose and signature.
Update is called every frame, if the MonoBehaviour is enabled. Signature: ```csharp public IObservable<Unit> UpdateAsObservable() ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_9824e5e3ad42
unity_docs
scripting
Give me an overview of the `SpriteAlignment` class in Unity.
SpriteAlignment enumeration Description How a Sprite's graphic rectangle is aligned with its pivot point. Additional resources: Sprite class. Properties Property Description Center Pivot is at the center of the graphic rectangle. TopLeft Pivot is at the top left corner of the graphic rectangle. TopCenter P...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_0b973bbbe09a_doc_4
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Helper function to get the RectTransform for the mask. Signature: ```csharp public RectTransform rectTransform ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_feef36bb19be
unity_docs
scripting
What is `UIElements.StyleBackgroundPosition.ctor` in Unity? Explain its purpose and usage.
StyleBackgroundPosition Constructor Declaration public StyleBackgroundPosition ( UIElements.BackgroundPosition v ); Description Creates a new StyleBackgroundPosition from either a BackgroundPosition or a StyleKeyword . Declaration public StyleBackgroundPosition ( UIElements.StyleKeyword keyword ); ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42df3926c7c5
unity_docs
performance
What are the parameters of `Unity.Profiling.LowLevel.Unsafe.ProfilerUnsafeUtility.BeginSampleWithMetadata` in Unity?
Description Starts profiling a piece of code marked with a custom name that the markerPtr handle and metadata parameters has defined. Code marked with BeginSampleWithMetadata and EndSample shows up in the Profiler hierarchy. Always use EndSample to close a started section of the instrumented code. In the Timeline view ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd6ff7d29300
unity_docs
scripting
What is `ModifiableContactPair.SetMaxImpulse` in Unity? Explain its purpose and usage.
ModifiableContactPair.SetMaxImpulse Declaration public void SetMaxImpulse (int i , float value ); Parameters Parameter Description i Index of the contact point. value The maximum impulse that can be applied. Description Set the maximum impulse that the solver can apply at a particular contact point in t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_71b32b926211
unity_docs
ui
What are the parameters of `GUI.BeginScrollView` in Unity?
Returns Vector2 The modified scrollPosition. Feed this back into the variable you pass in, as shown in the example. Description Begin a scrolling view inside your GUI. ScrollViews let you make a smaller area on-screen look 'into' a much larger area, using scrollbars placed on the sides of the ScrollView. ```csharp usin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f192b34f6884
unity_docs
editor
What is `AssetDatabase.GetCacheServerEnableDownload` in Unity? Explain its purpose and usage.
AssetDatabase.GetCacheServerEnableDownload Declaration public static bool GetCacheServerEnableDownload (); Returns bool Returns true when Download from the Cache Server is enabled. Returns false otherwise. Description Gets the Cache Server Download option from Editor Settings. ```csharp using UnityEngine;...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cb13fc8e8119
unity_docs
scripting
What is `RigidbodyConstraints.FreezeRotationY` in Unity? Explain its purpose and usage.
RigidbodyConstraints.FreezeRotationY Description Freeze rotation along the Y-axis. ```csharp //This example shows how RigidbodyConstraints is used to freeze the position and rotation of a Rigidbody in the y axis at start-up. //It also shows what happens when these constraints are removed, when you press the space k...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8f3224668be9
unity_docs
scripting
What is `Search.SearchColumn.ctor` in Unity? Explain its purpose and usage.
SearchColumn Constructor Declaration public SearchColumn (string path , GUIContent content , Search.SearchColumnFlags options ); Declaration public SearchColumn (string path , string selector , GUIContent content , Search.SearchColumnFlags options ); Declaration public SearchColumn (string pa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a238950f3941
unity_docs
scripting
Give me an overview of the `MonoImporter` class in Unity.
MonoImporter class in UnityEditor / Inherits from: AssetImporter Description Represents a C# script in the project. Public Methods Method Description GetDefaultReference Gets the default value for a reference field in the imported MonoScript. GetIcon Gets the icon to associate with the imported MonoScript. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ecac194c16fb_doc_8
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Allows accessing the camera API endpoints to interact with the map. Signature: ```csharp public CameraApi CameraApi ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_04148dd30c93
unity_docs
physics
What is `Search.PropertyDatabase.ctor` in Unity? Explain its purpose and usage.
PropertyDatabase Constructor Declaration public PropertyDatabase (string filePath ); Parameters Parameter Description filePath Path to the backing file. Description Constructs a new instance of a PropertyDatabase . If filePath does not exist, the file will be created automatically. The PropertyDatabas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ca4c89d8b370
unity_docs
editor
What is `Search.SearchUtils` in Unity? Explain its purpose and usage.
SearchUtils class in UnityEditor.Search Description Provides various utility functions that are used by SearchProvider . ```csharp using System; using System.Collections; using System.Globalization; using System.Linq; using UnityEditor.Search; using UnityEditor; using UnityEngine; /// <summary> /// Custom provi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b9b62cee816
unity_docs
scripting
What are the parameters of `RenderingLayerMask.GetMask` in Unity?
Returns uint The rendering layer mask created from the renderingLayerNames . Description Given a set of rendering layer names as defined in the Tags and Layers manager , returns the equivalent rendering layer mask for all of them. ```csharp using UnityEngine; using UnityEngine.Rendering;public class Example : MonoBehav...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_05ac0c3dc67e
unity_docs
rendering
What is `LightTransport.PostProcessing.RadeonRaysProbePostProcessor.ConvertToUnityFormat` in Unity? Explain its purpose and usage.
RadeonRaysProbePostProcessor.ConvertToUnityFormat Declaration public bool ConvertToUnityFormat ( LightTransport.IDeviceContext context , BufferSlice<SphericalHarmonicsL2> irradianceIn , BufferSlice<SphericalHarmonicsL2> irradianceOut , int probeCount ); Parameters Parameter Description context Device con...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_95fa06d0fe5d
unity_docs
scripting
What is `Material.CopyMatchingPropertiesFromMaterial` in Unity? Explain its purpose and usage.
Material.CopyMatchingPropertiesFromMaterial Declaration public void CopyMatchingPropertiesFromMaterial ( Material mat ); Parameters Parameter Description mat The Material to copy from. Description Copies properties, keyword states and settings from mat to this material, but only if they exist in both...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0a38e8f765de
unity_docs
audio
What is `AudioSource.isPlaying` in Unity? Explain its purpose and usage.
AudioSource.isPlaying public bool isPlaying ; Description Returns whether the AudioSource is currently playing an AudioResource (Read Only). AudioSource.isPlaying returns true if the AudioSource is playing any AudioResource , such as AudioClip or AudioRandomContainer. This includes if you use PlayOneShot...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_be773f0d31f6
unity_docs
xr
What is `PackageManager.Client.Embed` in Unity? Explain its purpose and usage.
Client.Embed Declaration public static PackageManager.Requests.EmbedRequest Embed (string packageName ); Parameters Parameter Description packageName The name of the package to embed. This package must be a direct dependency of the project. ArgumentException is thrown if packageName is null or empty...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8ce5f0dbfb39
unity_docs
scripting
What is `Experimental.GraphView.GraphView.viewTransform` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.viewTransform public UIElements.ITransform viewTransform ; Description Graph's view transform.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_61f81cf0df04
unity_docs
scripting
Explain 'LiveOps Building Blocks' in Unity.
LiveOps Unity Building Blocks use Unity Gaming Services (UGS) to add player sign-in options, achievements, and a leaderboard. You can add a LiveOps Building Block at any point in your project’s development. Topic Description LiveOps Building Blocks prerequisites Learn how to set up your project to work with the Unity S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0feb2dfcebd
unity_docs
rendering
What is `CustomRenderTextureInitializationSource` in Unity? Explain its purpose and usage.
CustomRenderTextureInitializationSource enumeration Description Specify the source of a Custom Render Texture initialization. Additional resources: CustomRenderTexture . Properties Property Description TextureAndColor Custom Render Texture is initialized by a Texture multiplied by a Color. Material Custom Re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebcd3991e085
unity_docs
scripting
What is `DrawGizmo.ctor` in Unity? Explain its purpose and usage.
DrawGizmo Constructor Declaration public DrawGizmo ( GizmoType gizmo ); Parameters Parameter Description gizmo Flags to denote when the gizmo should be drawn. Description Defines when the gizmo should be invoked for drawing. Additional resources: GizmoType , DrawGizmo . ```csharp using UnityEngine; us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6a3c64250b4a
unity_docs
physics
Explain 'Import Activity window reference' in Unity.
The Import Activity window displays information about how Unity imported assets into your project. To open the window, go to Window > Analysis > Import Activity . The window contains the following information: ## Toolbar At the top of the window, you can select from the following options which change how the data is ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3032ee8ca9f1
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.InsertShellScriptBuildPhase` in Unity?
Returns string Returns the GUID of the new phase. Description Creates a new shell script build phase for a given target. The build phase is inserted at the specified position. You can query all the defined build phases using GetAllBuildPhasesForTarget . ```csharp using UnityEditor; using System.IO; using UnityEditor.Ca...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_31a666697a17
unity_docs
rendering
Give me an overview of the `RenderTexture` class in Unity.
RenderTexture class in UnityEngine / Inherits from: Texture / Implemented in: UnityEngine.CoreModule Description Render textures are textures that can be rendered to. They can be used to implement image based rendering effects, dynamic shadows, projectors, reflections or surveillance cameras. One typical usa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ce9446a44365_doc_1
github
scripting
What does `Instance` do in this Unity script? Explain its purpose and signature.
Get or create the singleton instance Signature: ```csharp public static UpdateTransformJobManager<TData> Instance => _instance != null ? _instance : (_instance = new UpdateTransformJobManager<TData>()); ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_9410daf49d51
unity_docs
scripting
What is `SceneView.CameraSettings.occlusionCulling` in Unity? Explain its purpose and usage.
SceneView.CameraSettings.occlusionCulling public bool occlusionCulling ; Description Enables occlusion culling in the SceneView . This prevents Unity from rendering GameObjects that the Camera cannot see because they are hidden by other GameObjects.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a3735b75bbb3
github
scripting
Write a Unity C# script called Xp Item View
```csharp using PacEngine; using PacEngine.characters; using UnityEngine; namespace Assets.Scripts.View.characters.items { public class XpItemView:AbstractCharacterView { [SerializeField] private Animator currentAnimator; protected override void Awake() { animator ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_87fe7f95a632
unity_docs
ui
In Unity's 'Create a pie chart in the Editor and runtime UI', what is 'Create the pie chart graph' and how does it work?
Create a C# script that uses the Arc and Fill methods in the Vector API to draw a pie chart into a visual element . Create a Unity project with any template. Create a folder named pie-chart to store your files. In the pie-chart folder, create a C# script named PieChart.cs with the following content: ```csharp using Sys...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a3d959be21a3
unity_docs
rendering
Explain 'Particle shaders in the Built-In Render Pipeline' in Unity.
Resources for using the Standard Particle Shaders to render a variety of particle effects. Page Description Create a particle material Choose a type of Standard Particle Shader, and assign it to a material. Standard Particle Shaders Material Inspector window reference Reference for the Standard Particle Shaders. Custom...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5180cb896aee
unity_docs
scripting
What is `SceneManagement.SceneManager.LoadScene` in Unity? Explain its purpose and usage.
SceneManager.LoadScene Declaration public static void LoadScene (int sceneBuildIndex , SceneManagement.LoadSceneMode mode = LoadSceneMode.Single); Declaration public static void LoadScene (string sceneName , SceneManagement.LoadSceneMode mode = LoadSceneMode.Single); Parameters Parameter Descripti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b8ffce7ba099
unity_docs
rendering
In Unity's 'Use 16-bit precision in shaders', what is 'Use 16-bit values on more platforms' and how does it work?
By default, half has no effect on higher performance platforms in Unity, for example platforms that use MacOS. A half variable becomes a float , and the GPU uses 32-bit values for calculations. To use 16-bit precision on more platforms, go to Edit > Project Settings > Player and set Shader Precision Model to Uniform . ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_55568c96784c
unity_docs
editor
What are the parameters of `Callbacks.RunAfterPackageAttribute.ctor` in Unity?
Description Add this attribute to a callback method to mark that this callback must be run after any callbacks that are part of the specified package. To define dependencies for a callback, use the following attributes: RunAfterClassAttribute , RunBeforeClassAttribute RunAfterAssemblyAttribute , RunBeforeAssemblyAttrib...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7779396817f9
unity_docs
rendering
What are the parameters of `Material.SetTextureOffset` in Unity?
Description Sets the placement offset of a given texture. The name parameter is defined in the shader. This method creates a new Material instance. Additional resources: mainTextureOffset property, GetTextureOffset , SetTexture . ```csharp using UnityEngine;public class Example : MonoBehaviour { // Scroll main text...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_33e846401f48
unity_docs
rendering
Show me a Unity code example for 'Introduction to font assets'.
t To use a font asset, in UI Builder, select the font from Font Asset in the Inspector window. Note : The Font field is for backward compatibility. If you want to use a font from the Font list for your legacy projects, you must select None from Font Asset . Otherwise, the font you selected from Font won’t take effect....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0eea707dd60a
unity_docs
editor
What are the parameters of `VersionControl.Provider.ChangeSetStatus` in Unity?
Description Retrieves a list of assets belonging to a changeset. This is intended to work only with outgoing changesets. Use Provider.IncomingChangeSetAssets if you would like to retrieve assets from incoming changesets. ```csharp using System.Collections.Generic; using UnityEditor; using UnityEditor.VersionControl; us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8432641be79e
unity_docs
rendering
What are the parameters of `Rendering.ScriptableRenderContext.BeginRenderPass` in Unity?
Description Schedules the beginning of a new render pass. Only one render pass can be active at any time. A render pass provides a new way to switch rendertargets in the context of a Scriptable Rendering Pipeline. As opposed to the SetRenderTargets function, the render pass specifies a clear beginning and an end for th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b876766be497
unity_docs
scripting
What is `WSA.Tile.exists` in Unity? Explain its purpose and usage.
Tile.exists public bool exists ; Description Whether secondary tile is pinned to start screen. When hasUserConsent is true , this property determines, whether tile is present on start screen. Always true for the main tile.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7aaf2f1f3ac
unity_docs
physics
What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.EnforceAllBufferJobsHaveCompleted` in Unity? Explain its purpose and usage.
AtomicSafetyHandle.EnforceAllBufferJobsHaveCompleted Declaration public static Unity.Collections.LowLevel.Unsafe.EnforceJobResult EnforceAllBufferJobsHaveCompleted ( Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle ); Parameters Parameter Description handle The AtomicSafetyHandle to check. Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_607f79866bc5
unity_docs
input
Explain 'UnsignedLongField' in Unity.
The UnsignedLongField lets users enter an unsigned long integer. An unsigned long integer is a 64-bit datum that encodes a non-negative integer in the range 0 to 18446744073709551615. You can set placeholder text to provide hints or instructions to the user on what to enter. You can also add validation functions to ens...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.