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_154f17544cb0
unity_docs
math
What is `BillboardAsset.SetVertices` in Unity? Explain its purpose and usage.
BillboardAsset.SetVertices Declaration public void SetVertices (Vector2[] vertices ); Declaration public void SetVertices (List<Vector2> vertices ); Parameters Parameter Description vertices The array of data to set. Description Set the vertices of the billboard mesh. Additional resources: Billboar...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_087567d7cf0b
unity_docs
xr
What is `Compilation.RequestScriptCompilationOptions` in Unity? Explain its purpose and usage.
RequestScriptCompilationOptions enumeration Description Options for specifying the behavior of CompilationPipeline.RequestScriptCompilation . Properties Property Description None The default behavior. Unity will only recompile scripts that have changed, or that need recompiling due to changes in settings that ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0cd9c1a93e7
unity_docs
editor
What is `AssetDatabase.OpenAsset` in Unity? Explain its purpose and usage.
AssetDatabase.OpenAsset Declaration public static bool OpenAsset (int instanceID , int lineNumber = -1); Declaration public static bool OpenAsset (int instanceID , int lineNumber , int columnNumber ); Declaration public static bool OpenAsset ( Object target , int lineNumber = -1); Declaration pu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b3781af249f
unity_docs
math
Show me a Unity C# example demonstrating `Rendering.BlendShapeBufferLayout.PerVertex`.
vertex 1, and so on. The contiguous blend shape vertex data is stored as an array of 32-bit values. You must manually convert the data to an appropriate type. Unity does not create this buffer when it first creates the mesh. Instead, it creates this buffer on-demand, the first time you access it. This means that the f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7e70488f1198
unity_docs
xr
In Unity's 'Submit a license request from a command line and browser (macOS, Linux)', what is 'Before you begin' and how does it work?
See Manual license activation to make sure you understand the scenario for using this procedure, its limitations, and its internet connectivity requirements. Make sure you know the path where you installed the Unity Editor. Use the Unity Hub to determine the path. Open the Unity Hub and select Installs from the side me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2cedd83e99b1
unity_docs
editor
Show me a Unity code example for 'Thread Local Storage stack allocator example'.
ormation, refer to Customizing native memory allocators . The information in the usage report can help you select a block size that’s appropriate for your application. For example, in the following main thread usage report, the load peaks at 2.7 MB, but the remaining frames are under 64 KB. You can reduce the block siz...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_339318a877e4
unity_docs
editor
Show me a Unity C# example demonstrating `SettingsService.OpenProjectSettings`.
eclaration public static EditorWindow OpenProjectSettings (string settingsPath ); Parameters Parameter Description settingsPath Settings paths of the item to select (for example, 'Project/Player' or 'Project/Quality'). Returns EditorWindow Returns an instance to the Settings window. Description Open ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba651a320961
unity_docs
scripting
What is `PlayerSettings.GetManagedStrippingLevel` in Unity? Explain its purpose and usage.
PlayerSettings.GetManagedStrippingLevel Declaration public static ManagedStrippingLevel GetManagedStrippingLevel ( Build.NamedBuildTarget buildTarget ); Parameters Parameter Description buildTarget The NamedBuildTarget . Returns ManagedStrippingLevel Returns the default ManagedStrippingLevel for t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_213e5db345a3
unity_docs
rendering
What is `Rendering.EditorGraphicsSettings` in Unity? Explain its purpose and usage.
EditorGraphicsSettings class in UnityEditor.Rendering Description Editor-specific script interface for Graphics Settings . Static Properties Property Description albedoSwatches Returns an array of AlbedoSwatchInfo. batchRendererGroupShaderStrippingMode The current mode the BatchRendererGroup stripping is set...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_91f9c5f2a269
unity_docs
scripting
What is `AssetBundle.LoadAsset` in Unity? Explain its purpose and usage.
AssetBundle.LoadAsset Declaration public Object LoadAsset (string name ); Declaration public Object LoadAsset (string name , Type type ); Declaration public T LoadAsset (string name ); Parameters Parameter Description name Name of the Asset. For the most precise matching this should be the relativ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e031358b9919
unity_docs
physics
What is `Rigidbody2D.SlideResults` in Unity? Explain its purpose and usage.
SlideResults struct in UnityEngine / Implemented in: UnityEngine.Physics2DModule Description The results of a slide movement performed with Rigidbody2D.Slide . These results can be used to both tune movement configuration and to implement further logic to react to the specific surfaces encountered when a slide...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_312a05530b6d
unity_docs
rendering
In Unity's 'Replace shaders at runtime in the Built-In Render Pipeline', what is 'Built-in scene depth/normals texture' and how does it work?
A Camera has a built-in capability to render depth or depth+normals texture, if you need that in some of your effects. See Camera Depth Texture page. Note that in some cases (depending on the hardware), the depth and depth+normals textures can internally be rendered using shader replacement. So it is important to have ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d31a1376dce9
unity_docs
rendering
What is `Material.IsPropertyLocked` in Unity? Explain its purpose and usage.
Material.IsPropertyLocked Declaration public bool IsPropertyLocked (string name ); Declaration public bool IsPropertyLocked (int nameID ); Parameters Parameter Description nameID Property name ID, use Shader.PropertyToID to get it. name Property name, e.g. "_SrcBlend". Returns bool Returns true...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d9a143872d59
unity_docs
scripting
What is `Rendering.RenderPipelineGlobalSettings.TryGet` in Unity? Explain its purpose and usage.
RenderPipelineGlobalSettings.TryGet Declaration protected bool TryGet (Type type , out Rendering.IRenderPipelineGraphicsSettings settings ); Parameters Parameter Description type The type of the IRenderPipelineGraphicsSettings interface to search for. setting A valid reference to the IRenderPipelineG...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_04e325b76ad3
unity_docs
scripting
In Unity's 'Awaitable completion and continuation', what is 'Awaitable continuations' and how does it work?
Unless documented otherwise, all Awaitable instances returned by Unity APIs, as well as any user defined async Awaitable returning methods, have the following continuation scheduling behaviour: If the method is called from the main thread, it resumes on the main thread. Otherwise it resumes on a .NET ThreadPool thread....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b19e8adb476
unity_docs
scripting
What is `Experimental.GraphView.GraphView.SetupZoom` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.SetupZoom Declaration public void SetupZoom (float minScaleSetup , float maxScaleSetup ); Declaration public void SetupZoom (float minScaleSetup , float maxScaleSetup , float scaleStepSetup , float referenceSc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef363a2c7512
unity_docs
ui
What is `UIElements.VisualElement.MeasureMode` in Unity? Explain its purpose and usage.
MeasureMode enumeration Description The modes available to measure VisualElement sizes. Additional resources: TextElement.MeasureTextSize Properties Property Description Undefined The element should give its preferred width/height without any constraint. Exactly The element should give the width/h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_965bddfa2062
unity_docs
scripting
What is `UIElements.UxmlEnumAttributeDescription_1.GetValueFromBag` in Unity? Explain its purpose and usage.
UxmlEnumAttributeDescription<T0>.GetValueFromBag Declaration public T 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 T The value of the attribut...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_147781685428
unity_docs
rendering
In Unity's 'Asset metadata', what is 'Moving and renaming assets' and how does it work?
Meta files contain important information about how the asset is used in your project, and they must stay with the asset file they relate to. If you move or rename an asset within the Project window, Unity automatically moves or renames the corresponding.meta file. However, if you move or rename an asset outside of Unit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c13acf0be329
unity_docs
xr
Show me a Unity C# example demonstrating `WWWForm.headers`.
public Dictionary<string,string> headers ; Description (Read Only) Returns the correct request headers for posting the form using the WWW class. This field only contains one header, /"Content-Type"/, which is set to the correct mime type for the form: " application/x-www-form-urlencoded " for normal forms and " m...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e19df63faf5
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.remapXMultiplier`.
ParticleSystem.NoiseModule.remapXMultiplier public float remapXMultiplier ; Description x-axis remap multiplier. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall remap multiplier. Additional resources: ParticleSystem.NoiseModule.remapX . ```csha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cd7cba5f9286
unity_docs
rendering
Explain 'HLSL pragma require command reference' in Unity.
Here are all the valid values for the #pragma require directive. Value Description interpolators10 At least 10 vertex-to-fragment interpolators (“varyings”) are available. interpolators15 At least 15 vertex-to-fragment interpolators (“varyings”) are available. Note: Internally, this also automatically adds integers to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_68a7a57024e8
unity_docs
editor
What is `Callbacks.RunAfterPackageAttribute.ctor` in Unity? Explain its purpose and usage.
RunAfterPackageAttribute Constructor Declaration public RunAfterPackageAttribute (string packageName ); Parameters Parameter Description packageName The name of the package that should be run before this callback. Description Add this attribute to a callback method to mark that this callback must be run af...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c4448e223547
unity_docs
rendering
Explain 'Configure multiple cameras' in Unity.
When created, a Unity scene contains just a single camera and this is all you need for most situations. However, you can have as many cameras in a scene as you like and their views can be combined in different ways, as described below. ## Swap camera views By default, a camera renders its view to cover the whole scre...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_35f8fb3212ea_doc_19
github
scripting
What does `IsUsingTheme` do in this Unity script? Explain its purpose and signature.
Check if current element is using theme manager.True if this element use theme manager. Signature: ```csharp public bool IsUsingTheme() ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_f16449ea0fce
unity_docs
scripting
Show me a Unity C# example demonstrating `AndroidJavaObject.GetRawObject`.
AndroidJavaObject.GetRawObject Declaration public IntPtr GetRawObject (); Description Retrieves the raw jobject pointer to the Java object. Note: Using raw JNI functions requires advanced knowledge of the Android Java Native Interface (JNI). Additional resources: AndroidJavaObject.GetRawClass ```csharp usi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f2ec8dbd2f07
unity_docs
xr
In Unity's 'Scoped registry authentication', what is '2) Configure authentication information' and how does it work?
Store your token information for each scoped registry that requires authentication in the.upmconfig.toml user configuration file using the npmAuth configuration schema. After you save this information to the configuration file, Package Manager will provide your authentication information on every request made to each r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_045a49923dbe
unity_docs
editor
What is `RuntimePlatform.LinuxEditor` in Unity? Explain its purpose and usage.
RuntimePlatform.LinuxEditor Description In the Unity editor on Linux. Additional resources: RuntimePlatform , Platform dependent compilation . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { if (Application.platform == RuntimePlatform.LinuxEditor) { Debug.Log("Do something ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f08eb3c6deb1
github
scripting
Write a Unity Editor script for Control Point Renderer
```csharp using UnityEngine; using UnityEditor; using System.Collections.Generic; namespace CurvePickerTool { // Control point renderer internal class ControlPointRenderer { private class RenderChunk { public Mesh mesh; public List<Vector3> vertices; p...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_ae02534f522e
unity_docs
input
What is `Event.KeyboardEvent` in Unity? Explain its purpose and usage.
Event.KeyboardEvent Declaration public static Event KeyboardEvent (string key ); Parameters Parameter Description key A string representing keyboard keys and modifiers. Returns Event A new Event with EventType.KeyDown and the requested KeyCode and optional EventModifier. Description Create a ke...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_88338001972b
unity_docs
scripting
What is `UIElements.EventBase.dispatch` in Unity? Explain its purpose and usage.
EventBase.dispatch public bool dispatch ; Description Indicates whether the event is being dispatched to a visual element. An event cannot be redispatched while it being dispatched. If you need to recursively dispatch an event, it is recommended that you use a copy of the event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a76918bf8664
unity_docs
scripting
What is `Rendering.VertexAttributeFormat.UInt32` in Unity? Explain its purpose and usage.
VertexAttributeFormat.UInt32 Description 32-bit unsigned integer. This format matches the @uint@ data type in C#, with values ranging from 0 to 4294967295. Additional resources: Mesh class, VertexAttribute enum, Mesh.GetVertexAttributeFormat .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_be5c9c1e7c0e
unity_docs
editor
Show me a Unity C# example demonstrating `AssetImporter.assetPath`.
AssetImporter.assetPath public string assetPath ; Description The path name of the asset for this importer. (Read Only) ```csharp using UnityEngine; using UnityEditor; public class AssetPathExample : MonoBehaviour { [MenuItem("Tools/AssetPathExample")] static void Example() { var importers = AndroidAssetPac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0a533beee1a7
unity_docs
ui
What is `Experimental.GraphView.ISelectable.Select` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ISelectable.Select Declaration public void Select ( UIElements.VisualElement selectionContainer , bool additive ); Parameters Parameter Description selectionContainer Container in which selection is tracked. additive ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_10e0a868902d
unity_docs
scripting
Give me an overview of the `ImageEffectTransformsToLDR` class in Unity.
ImageEffectTransformsToLDR class in UnityEngine / Implemented in: UnityEngine.CoreModule Description When using HDR rendering it can sometime be desirable to switch to LDR rendering during ImageEffect rendering. Using this Attribute on an image effect will cause the destination buffer to be an LDR buffer, and s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b2ab10b70d5d
unity_docs
input
Explain 'Detect Game Controllers' in Unity.
Unity includes the Game Controller framework in the project only if a script in the project references Input.GetJoystickNames . If it’s available, Unity iOS Runtime loads the framework dynamically. To get the list of all available controllers, call Input.GetJoystickNames . You can re-check this list at any time to dete...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a296264cf236
unity_docs
rendering
What is `SystemInfo.SupportsRandomWriteOnRenderTextureFormat` in Unity? Explain its purpose and usage.
SystemInfo.SupportsRandomWriteOnRenderTextureFormat Declaration public static bool SupportsRandomWriteOnRenderTextureFormat ( RenderTextureFormat format ); Parameters Parameter Description format The format to look up. Returns bool True if the format can be used for random access writes. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c9b1d46f8ebd
unity_docs
editor
What is `EditorWindow.ShowModal` in Unity? Explain its purpose and usage.
EditorWindow.ShowModal Declaration public void ShowModal (); Description Show modal editor window. Other windows will not be accessible and any script recompilation will not happen until this window is closed. ```csharp using UnityEditor; using UnityEngine; using UnityEngine.UIElements; public class ShowModal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ffe53afbf47
unity_docs
animation
What is `Animations.AnimatorCondition` in Unity? Explain its purpose and usage.
AnimatorCondition struct in UnityEditor.Animations Description Condition that is used to determine if a transition must be taken. Properties Property Description mode The mode of the condition. parameter The name of the parameter used in the condition. threshold The AnimatorParameter's threshold value for th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a6c07d4cb803
unity_docs
scripting
What is `LocationServiceStatus.Initializing` in Unity? Explain its purpose and usage.
LocationServiceStatus.Initializing Description The location service is initializing. Depending on whether the user gives access to the location service, this transitions to LocationServiceStatus.Running or LocationServiceStatus.Failed .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b761813af039
unity_docs
ui
Explain 'Migrate from Immediate Mode GUI (IMGUI) to UI Toolkit' in Unity.
This guide is for developers experienced with Immediate Mode GUI (IMGUI) to migrate to UI Toolkit. This guide focuses on the Editor UI, but its information can also apply to the runtime UI as well. ## Code-driven versus UI-driven IMGUI is code-driven by calls to the OnGUI function in a C# script that implements it. U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92b3d7385af0
unity_docs
editor
Show me a Unity C# example demonstrating `Unity.Profiling.Editor.ProfilerModule.CreateDetailsViewController`.
s View in the Profiler window. Unity calls this method automatically when the module is selected in the Profiler window. To present a bespoke visualization of your performance data when your module is selected, override this method. To do this, define a new ProfilerModuleViewController derived type, where the custom...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7bef784047e3
unity_docs
animation
What is `AnimationUtility.SetAnimationEvents` in Unity? Explain its purpose and usage.
AnimationUtility.SetAnimationEvents Declaration public static void SetAnimationEvents ( AnimationClip clip , AnimationEvent[] events ); Description Replaces all animation events in the animation clip.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_36b8b9ff13ba_doc_8
github
scripting
What does `MovieFrameCount` do in this Unity script? Explain its purpose and signature.
Number of loaded movie frames. Signature: ```csharp public int MovieFrameCount => _movieFrames?.Length ?? 0; ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_ff6afaf9ffd7
unity_docs
rendering
What is `Experimental.Playables.TexturePlayableBinding` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. TexturePlayableBinding class in UnityEngine.Experimental.Playables / Implemented in: UnityEngine.CoreModule Description A PlayableBinding that contains information representing a TexturePlayableOutput . Static Methods Me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c269c868959f
unity_docs
editor
What are the parameters of `SceneManagement.EditorSceneManager.OpenScene` in Unity?
Returns Scene A reference to the opened Scene. Description Open a Scene in the Editor. Use this function to open Scenes in the Hierarchy while in the Editor, for example for making custom Editor scripts, tools, or menu items. Do not use it for loading Scenes at run time. To load Scenes at run time, see SceneManager.Loa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec41bcd5022f
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.AddFrameworksBuildPhase` in Unity?
Returns string Returns the GUID of the new phase. Description Creates a new frameworks build phase for given target. If the frameworks build phase is already configured for the target, the function returns the existing phase. The new phase is placed at the end of the list of build phases configured for the target. ```c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ec509a32d45c
unity_docs
scripting
In Unity's 'Introduction to SerializedObject data binding', what is 'Value binding' and how does it work?
You can only bind the value property of visual elements that implement the INotifyValueChanged interface. For example, you can bind TextField.value to a string , but you can’t bind TextField.name to a string . You can bind between an object and any visual element that either derives from BindableElement or implements t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c30cd8e48bd9
unity_docs
scripting
What is `NormalMapEncoding` in Unity? Explain its purpose and usage.
NormalMapEncoding enumeration Description Describes the encoding of normal maps. You can configure the encoding of normal maps on Android, iOS, and tvOS. On other platforms, the encoding is always DXT5nm. Properties Property Description XYZ Three-component normal map encoding. DXT5nm Two-component DXT5nm-styl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1fe8a6144bcd
github
scripting
Write a Unity C# audio script for Audio Mng
```csharp using UnityEngine; namespace Lynx { public class AudioMng : MonoBehaviour { [SerializeField] private AudioSource audioSource; [SerializeField] private AudioClip[] audioClips; public void Play_Click() { audioSource.PlayOneShot(audioClips[0...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_5f08c6a30703
unity_docs
physics
What is `JointLimits.contactDistance` in Unity? Explain its purpose and usage.
JointLimits.contactDistance public float contactDistance ; Description Distance inside the limit value at which the limit will be considered to be active by the solver. Setting this low can cause jittering, but runs fast. Setting high can deduce jittering, but runs the solver more often. (0 = use defaults) Fo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc884b1b8f4e
unity_docs
scripting
What is `SceneManagement.SceneManagerAPI.LoadFirstScene` in Unity? Explain its purpose and usage.
SceneManagerAPI.LoadFirstScene Declaration protected AsyncOperation LoadFirstScene (bool mustLoadAsync ); Description Override for customizing the behavior of loading the first Scene in a stub player build.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_459e5d6db99f
unity_docs
audio
Show me a Unity C# example demonstrating `Rendering.SplashScreen.Draw`.
SplashScreen.Draw Declaration public static void Draw (); Description Immediately draws the splash screen. Ensure you have called SplashScreen.Begin before you start calling this. ```csharp using System.Collections; using UnityEngine; using UnityEngine.Rendering;// This example shows how you could draw the sp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_492f354b812c_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Transform プロパティをキャッシュする MonoBehaviour Signature: ```csharp public abstract class CacheableMonoBehaviour : MonoBehaviour ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
gh_3c8a9ee6d3f7
github
scripting
Write a Unity C# script called Game Event
```csharp using Hudossay.AttributeEvents.Assets.Runtime.EventLinks; using System.Collections.Generic; using UnityEngine; namespace Hudossay.AttributeEvents.Assets.Runtime.GameEvents { public class GameEvent<T1, T2, T3, T4> : GameEventBase { public List<EventLink<T1, T2, T3, T4>> Links = new List<EventL...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_37b2736568fa
unity_docs
networking
What is `Android.AndroidConfiguration.screenLayoutLong` in Unity? Explain its purpose and usage.
AndroidConfiguration.screenLayoutLong public Android.AndroidScreenLayoutLong screenLayoutLong ; Description Mirrors the Android property screenLayout based on the SCREENLAYOUT_LONG_MASK value. For information about this property, refer to the Android developer documentation on screenLayout and SCREENLA...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_446392781e83
unity_docs
scripting
Give me an overview of the `FontStyle` class in Unity.
FontStyle enumeration Description Font Style applied to GUI Texts, Text Meshes or GUIStyles. Properties Property Description Normal No special style is applied. Bold Bold style applied to your texts. Italic Italic style applied to your texts. BoldAndItalic Bold and Italic styles applied to your texts.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_28303d4391d9
unity_docs
rendering
In Unity's 'GrabPass directive in ShaderLab reference', what is 'Syntax' and how does it work?
Use this command in a SubShader block. Note that the two different signatures have different functionality, and different performance implications. Using a named texture can result in significantly fewer screen grabbing operations, which can reduce the impact of this resource-intensive command. Signature Function GrabP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e64470c0e962
unity_docs
scripting
What is `Experimental.GraphView.Placemat.BuildContextualMenu` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Placemat.BuildContextualMenu Declaration protected void BuildContextualMenu ( UIElements.ContextualMenuPopulateEvent evt ); Parameters Parameter Description evt The event for the contextual menu being populated. Descrip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d95c1d847424
unity_docs
rendering
What is `HandleUtility.GetSelectionOutlineIncludeExcludeList` in Unity? Explain its purpose and usage.
HandleUtility.GetSelectionOutlineIncludeExcludeList Declaration public static PickingIncludeExcludeList GetSelectionOutlineIncludeExcludeList ( Unity.Collections.Allocator allocator ); Parameters Parameter Description allocator The allocator to use to create the PickingIncludeExcludeList object. Return...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_96650721ee92
unity_docs
editor
What is `EditorGUI.GradientField` in Unity? Explain its purpose and usage.
EditorGUI.GradientField Declaration public static Gradient GradientField ( Rect position , Gradient gradient ); Declaration public static Gradient GradientField ( Rect position , string label , Gradient gradient ); Declaration public static Gradient GradientField ( Rect position , GUICont...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75d8f23d0f48
unity_docs
math
Show me a Unity C# example demonstrating `AI.NavMesh.AllAreas`.
NavMesh.AllAreas public static int AllAreas ; Description Area mask constant that includes all NavMesh areas. Use the mask in query functions, such as Raycast , to indicate that all NavMesh area types are accepted. ```csharp // TargetReachable using UnityEngine; using UnityEngine.AI;public class TargetReachab...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4c75511d97e
unity_docs
rendering
What is `Rendering.GraphicsTextureDescriptor.depth` in Unity? Explain its purpose and usage.
GraphicsTextureDescriptor.depth public int depth ; Description The volumetric depth of a 3D GraphicsTexture. For volumetric graphics textures (see dimension ), this variable determines the depth in pixels. Must be 0 for non-3D textures. Additional resources: GraphicsTextureDescriptor.width , GraphicsTexture...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a45772b800f3
unity_docs
rendering
Show me a Unity code example for 'ShaderLab: legacy vertex data channel mapping'.
mary UV set to be used in the first texture stage and the secondary UV set to be used in the second texture stage; or tell the hardware that vertex colors should be taken into account. ## Render pipeline compatibility Feature name Built-in Render Pipeline Universal Render Pipeline (URP) High Definition Render Pipelin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_37e14c3ef9f3
unity_docs
scripting
What is `UIElements.MultiColumnTreeView.sortedColumns` in Unity? Explain its purpose and usage.
MultiColumnTreeView.sortedColumns public IEnumerable<SortColumnDescription> sortedColumns ; Description Contains information about which columns are currently being sorted. Use along with the columnSortingChanged event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_03c27a20e2e8
unity_docs
xr
Explain 'Get started with scoped registries' in Unity.
As a package provider, you can host a scoped registry as a way to distribute custom packages to users. As a package consumer, you can access the packages in a scoped registry without leaving the Package Manager window. Here are some important concepts to help you understand scoped registries: Concept Description packag...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8fd98b9abfe5
unity_docs
editor
What is `PlayerSettings.Android.targetArchitectures` in Unity? Explain its purpose and usage.
PlayerSettings.Android.targetArchitectures public static AndroidArchitecture targetArchitectures ; Description A set of CPU architectures for the Android build target. ```csharp using UnityEngine; using UnityEditor; using UnityEditor.Build;public class TargetArchitecturesExample : MonoBehaviour { [MenuItem(...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8881c7fe4da1
unity_docs
scripting
In Unity's 'License troubleshooting', what is 'Unity license file location' and how does it work?
Question Answer Where is my serial-based license file stored? - Windows: %PROGRAMDATA%\Unity\Unity_lic.ulf - macOS: /Library/Application\ Support/Unity/Unity_lic.ulf - Linux: ~/.local/share/unity3d/Unity/Unity_lic.ulf Note : If Windows User Account Control (UAC) has restricted your access to C:\ProgramData\Unity , you ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4fecc232c1cd
unity_docs
scripting
What is `AI.NavMeshBuildSourceShape.ModifierBox` in Unity? Explain its purpose and usage.
NavMeshBuildSourceShape.ModifierBox Description Describes a ModifierBox source for use with NavMeshBuildSource . This shape changes the area type of the walkable surface inside the box. Because this modification happens in a voxel representation of the scene, NavMesh does not follow the outline of the box precisel...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_07f969648c63
unity_docs
scripting
Give me an overview of the `Space` class in Unity.
Space enumeration Description The coordinate spaces in which to apply transformation to a GameObject. You can pass a value from this enum as a parameter to methods such as Transform.Rotate and Transform.Translate to specify which coordinate space the transformation is applied in. World coordinate space repre...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_7e790fff67c3_doc_1
github
scripting
What does `playerInputs` do in this Unity script? Explain its purpose and signature.
/ -------------------------------------------------------------------------------------------/ Properties and Fields/ ------------------------------------------------------------------------------------------- Signature: ```csharp public PlayerInputs playerInputs => _playerInputs; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_ad2084da4051
unity_docs
scripting
What is `UIElements.UQueryBuilder_1.First` in Unity? Explain its purpose and usage.
UQueryBuilder<T0>.First Declaration public T First (); Returns T The first element matching all the criteria, or null if none was found. Description Convenience overload, shorthand for Build().First().
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9d8f6072ce20
unity_docs
physics
What is `Rigidbody.AddRelativeForce` in Unity? Explain its purpose and usage.
Rigidbody.AddRelativeForce Declaration public void AddRelativeForce ( Vector3 force , ForceMode mode = ForceMode.Force); Parameters Parameter Description force Force vector in local coordinates. Description Adds a force to the rigidbody relative to its coordinate system. Force can be applied only to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ffe50ec2764c
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.separateAxes`.
ParticleSystem.NoiseModule.separateAxes public bool separateAxes ; Description Control the noise separately for each axis. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleSystem ps; public float hSlid...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_72e786ba25eb
unity_docs
scripting
What is `Projector.farClipPlane` in Unity? Explain its purpose and usage.
Projector.farClipPlane public float farClipPlane ; Description The far clipping plane distance. The projector will not affect anything that is further than this distance. Additional resources: projector component . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { // Get th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_967a6307b5d9_doc_5
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
A list of Tiling Rule Overrides Signature: ```csharp public List<OverrideTilingRule> m_OverrideTilingRules = new List<OverrideTilingRule>(); ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_91852e8075a8
unity_docs
math
What is `AndroidJNI.SetDoubleArrayElement` in Unity? Explain its purpose and usage.
AndroidJNI.SetDoubleArrayElement Declaration public static void SetDoubleArrayElement (IntPtr array , int index , double val ); Description Sets the double value of one element in a primitive array. This function is a special case of SetDoubleArrayRegion(), called with region size set to 1. Additional resour...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b5685c8fd0af
unity_docs
scripting
What is `SerializationUtility.ClearManagedReferenceWithMissingType` in Unity? Explain its purpose and usage.
SerializationUtility.ClearManagedReferenceWithMissingType Declaration public static bool ClearManagedReferenceWithMissingType ( Object obj , long id ); Description Drop the serialized data associated with a specific managed reference object that is missing its type. This method returns false if there is no r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_37d6680b9865
unity_docs
rendering
In Unity's 'Configure mipmap streaming', what is 'Set which mipmap levels a camera uses' and how does it work?
Use the Mipmap Bias setting in a Streaming Controller component to force Unity to load smaller or larger mipmap levels than the ones mipmap streaming automatically chooses. Unity adds the Mipmap Bias value to mipmap levels from textures in the camera view. For example, if you set Mipmap Bias to 2 and mipmap streaming c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d68b3ba61820
unity_docs
editor
Show me a Unity C# example demonstrating `EditorGUI.Toggle`.
position , GUIContent label , bool value , GUIStyle style ); Parameters Parameter Description position Rectangle on the screen to use for the toggle. label Optional label in front of the toggle. value The shown state of the toggle. style Optional GUIStyle . Returns bool The selected state of th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_9c1e2fcfd97a
github
scripting
Write a Unity Editor script for Package Json Data
```csharp using System; using UnityEngine; namespace Baxter.ClusterScriptExtensions.Editor.VersionChecker { /// <summary> /// .unitypackage に同梱された package.json をTextAssetとして読み出したのをデシリアライズするために定義したクラス。 /// </summary> [Serializable] public class PackageJsonData { //NOTE: authorとかもデータに含んでい...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_51c891528668
unity_docs
editor
Show me a Unity code example for 'Configure your debugging tool to debug Unity in Windows'.
File > Attach to process . A list of applications shows in the window. In the list, choose the application you want to debug: To debug the Editor, use Unity.exe . To debug your built game, use the .exe file of your game. Select Attach . WinDbg connects to your application, which might take a few minutes. Enter the foll...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ba3390e46e1
unity_docs
physics
Give me an overview of the `ParticleSystemForceFieldShape` class in Unity.
ParticleSystemForceFieldShape enumeration Description The type of shape used for influencing particles in the Force Field Component. Properties Property Description Sphere Influence particles inside a sphere shape. Hemisphere Influence particles inside a hemisphere shape. Cylinder Influence particles inside a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9f7bfd1881b3
unity_docs
rendering
In Unity's 'Navigating the Profiler window', what is 'Selecting and inspecting a frame' and how does it work?
To select and inspect a frame: Click on the area of a Profiler module’s chart that you want to inspect. A white line appears, which highlights one frame of your application. To navigate between frames, use the transport controls in the toolbar of the Profiler window, or the arrow keys on your keyboard. Unity then displ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d6dfa70b363e
unity_docs
editor
In Unity's 'Install the platform package for QNX', what is 'Additional instructions for macOS installation' and how does it work?
On macOS, you need to move and re-install the Editor and platform package manually because Unity installs on the wrong installation path. To make sure the Editor and platform package work correctly, follow these steps: Move the /Applications/Unity/Hub/Editor/<version>/ folder to /Applications/Unity/Unity-<version>/ . F...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0dcd1be92899
unity_docs
xr
What is `XR.XRSettings.stereoRenderingMode` in Unity? Explain its purpose and usage.
XRSettings.stereoRenderingMode public static XR.XRSettings.StereoRenderingMode stereoRenderingMode ; Description The stereo rendering mode that is currently in use. The stereo rendering mode currently in use may be different from the user-specified stereo rendering mode if the underlying GPU or platform does ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_950077f9a3ea
unity_docs
rendering
What is `TransparencySortMode.Perspective` in Unity? Explain its purpose and usage.
TransparencySortMode.Perspective Description Perspective transparency sorting mode. Transparent objects will be sorted based on distance from camera position to the object center. Additional resources: Camera.transparencySortMode .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_48b3d98f8554
unity_docs
scripting
In Unity's 'Use Vector API to create a radial progress indicator', what is 'Style the custom control' and how does it work?
Create a USS file named RadialProgress.uss with the following content: ```.radial-progress { min-width: 26px; min-height: 20px; --track-color: rgb(130, 130, 130); --progress-color: rgb(46, 132, 24); --percentage-color: white; margin-left: 5px; margin-right: 5px; margin-top: 5px; margin-bottom: 5px; flex-direc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db3e59c87b87
unity_docs
performance
What is `Profiling.RawFrameDataView.GetSampleMetadataCount` in Unity? Explain its purpose and usage.
RawFrameDataView.GetSampleMetadataCount Declaration public int GetSampleMetadataCount (int sampleIndex ); Parameters Parameter Description sampleIndex Index of the Profiler sample. Returns int Amount of metadata values. Description Gets metadata count associated with the specific sample.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7eed99db1496
unity_docs
editor
What are the parameters of `EditorUserBuildSettings.SwitchActiveBuildTarget` in Unity?
Returns bool True if the build target was successfully switched, false otherwise (for example, if license checks fail, files are missing, or if the user has cancelled the operation via the UI). Description Select a new build target to be active. When changing the active build target, this function reimports Assets that...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9949868d5aa8
unity_docs
ui
What is `BuildOptions.PatchPackage` in Unity? Explain its purpose and usage.
BuildOptions.PatchPackage Description Patch a Development app package rather than completely rebuilding it. Supported only on Android platform. Use the PatchPackage option in your build script to rebuild and deploy project changes. Patching an existing deployment can be significantly faster than rebuilding the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9c275c9aecb6
unity_docs
scripting
What is `SerializedProperty.propertyType` in Unity? Explain its purpose and usage.
SerializedProperty.propertyType public SerializedPropertyType propertyType ; Description Type of this property (Read Only). Property type determines which of the "value" variable accessors are valid. For example, only boolValue is valid for SerializedPropertyType.Boolean For numeric types SerializedP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a4130a5c9ec0
unity_docs
scripting
What is `Unity.Android.Gradle.ModuleBuildGradleFile.Repositories` in Unity? Explain its purpose and usage.
ModuleBuildGradleFile.Repositories public Unity.Android.Gradle.Repositories Repositories ; Description The C# definition of the repositories element in a gradle file. Configures the repositories for this project.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_28dde5109057
unity_docs
scripting
What is `ParticleSystem.ExternalForcesModule.multiplierCurve` in Unity? Explain its purpose and usage.
ParticleSystem.ExternalForcesModule.multiplierCurve public ParticleSystem.MinMaxCurve multiplierCurve ; Description Multiplies the magnitude of applied external forces. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour {...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_38d89136bf97
unity_docs
ui
What are the parameters of `EditorPrefs.SetFloat` in Unity?
Description Sets the float value of the preference identified by key . ```csharp // Simple script that allows a float value to be editted // in a slider. The final value is written into the Editor Preferences.using UnityEngine; using UnityEditor; using System;public class SetFloatExample : EditorWindow { static flo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4fb75976b71b
unity_docs
scripting
Show me a Unity C# example demonstrating `WaitForFixedUpdate`.
ForFixedUpdate class in UnityEngine / Inherits from: YieldInstruction / Implemented in: UnityEngine.CoreModule Description Suspends coroutine execution until the next fixed update. WaitForFixedUpdate can only be used with a yield statement in coroutines. Additional resources: AsyncOperation , WaitForEndO...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef97a3df8acc
unity_docs
scripting
What is `IMGUI.Controls.TreeView.SetExpanded` in Unity? Explain its purpose and usage.
TreeView.SetExpanded Declaration public bool SetExpanded (int id , bool expanded ); Parameters Parameter Description id TreeViewItem ID. expanded True expands item. False collapses item. Returns bool True if item changed expanded state, false if item already had the expanded state. Description S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a720b653208c
unity_docs
ui
What is `UIElements.IVisualElementScheduler.Execute` in Unity? Explain its purpose and usage.
IVisualElementScheduler.Execute Declaration public UIElements.IVisualElementScheduledItem Execute (Action<TimerState> timerUpdateEvent ); Parameters Parameter Description timerUpdateEvent The action to be executed. Returns IVisualElementScheduledItem Reference to the scheduled action. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6b96c2abfc67
unity_docs
rendering
What is `HandleUtility.GetHandleSize` in Unity? Explain its purpose and usage.
HandleUtility.GetHandleSize Declaration public static float GetHandleSize ( Vector3 position ); Parameters Parameter Description position The position of the handle in 3d space. Returns float A constant screen-size for the handle, based on the distance between from the supplied handle's position to the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5801515917a5
unity_docs
rendering
What is `ParticleSystem.GetPlaybackState` in Unity? Explain its purpose and usage.
ParticleSystem.GetPlaybackState Declaration public ParticleSystem.PlaybackState GetPlaybackState (); Returns PlaybackState The current internal state of the Particle System. Description Returns all the data that relates to the current internal state of the Particle System. If you want to restore the Pa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.