id
stringlengths
15
22
source
stringclasses
2 values
category
stringclasses
12 values
instruction
stringlengths
22
180
response
stringlengths
100
46.1k
system
stringclasses
5 values
local_man_0e6096641ba8
unity_docs
rendering
Explain 'Transparent Cutout Vertex-Lit' in Unity.
Note. Unity 5 introduced the Standard Shader which replaces this shader . ## Transparent Cutout Properties Note. Unity 5 introduced the Standard Shader which replaces this shader. Cutout shader is an alternative way of displaying transparent objects. Differences between Cutout and regular Transparent shaders are: Thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60af6ef6fc75
unity_docs
scripting
What is `Search.CustomObjectIndexerAttribute.ctor` in Unity? Explain its purpose and usage.
CustomObjectIndexerAttribute Constructor Declaration public CustomObjectIndexerAttribute (Type type ); Parameters Parameter Description type Type of object to be indexed. Description Register a new Indexing function bound to the specific type. ```csharp [CustomObjectIndexer(typeof(SceneAsset), version = 2...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65ad62bdc49d
unity_docs
rendering
What is `ShadowResolution` in Unity? Explain its purpose and usage.
ShadowResolution enumeration Description Default shadow resolution. Each decrease in quality level halves the resolution of shadows. Additional resources: QualitySettings.shadowResolution , Light.shadowResolution , Shadow map size calculation . Properties Property Description Low Low shadow map resolution. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ea5199cfcd7b
unity_docs
rendering
Show me a Unity C# example demonstrating `Profiling.Recorder.sampleBlockCount`.
Recorder.sampleBlockCount public int sampleBlockCount ; Description Number of time Begin/End pairs was called during the previous frame. (Read Only) The counter represents the number of complete or running profiling block during previous frame. ```csharp using UnityEngine; using UnityEngine.Profiling;public cl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d3e132070503
unity_docs
rendering
What is `CanvasRenderer.GetInheritedAlpha` in Unity? Explain its purpose and usage.
CanvasRenderer.GetInheritedAlpha Declaration public float GetInheritedAlpha (); Returns float The calculated inherited alpha. Description Get the final inherited alpha calculated by including all the parent alphas from included parent CanvasGroups. Alpha is calculated by getting the alpha from all parent ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_20c99171dc15
unity_docs
physics
Explain 'Understand physics performance issues' in Unity.
The physics simulation runs on a separate fixed frequency update cycle from the main logic’s update loop, and can only advance time via a Time.fixedDeltaTime per call. This is similar to the difference between Update and FixedUpdate . For more information, refer to the documentation on the Time window . When a heavy lo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_39614e3e84d2
unity_docs
animation
What is `Animations.AnimatorStateTransition.duration` in Unity? Explain its purpose and usage.
AnimatorStateTransition.duration public float duration ; Description The duration of the transition. The duration is in seconds by default. To set it to be the normalized time of the source state, set hasFixedDuration to false.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0e17239868f4
unity_docs
physics
Show me a Unity C# example demonstrating `RaycastHit2D.rigidbody`.
der refers to the specific Collider2D that was detected however rigidbody refers to the Rigidbody2D the Collider2D is attached to. In the case where the Collider2D is not attached to a Rigidbody2D then rigidbody will be NULL. NOTE : rigidbody is equivalent to using Collider2D.attachedRigidbody and is...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e1e199f0a9eb
unity_docs
physics
Give me an overview of the `Joint2D` class in Unity.
Joint2D class in UnityEngine / Inherits from: Behaviour / Implemented in: UnityEngine.Physics2DModule Description Parent class for joints to connect Rigidbody2D objects. Additional resources: AnchoredJoint2D class. Properties Property Description attachedRigidbody The Rigidbody2D attached to the Joint2D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d72f9a06e5a5
unity_docs
scripting
What is `Rendering.ReflectionProbeClearFlags.Skybox` in Unity? Explain its purpose and usage.
ReflectionProbeClearFlags.Skybox Description Clear with the skybox. If a skybox is not set up, the Reflection Probe will clear with a backgroundColor . Additional resources: ReflectionProbe.clearFlags property. ```csharp using UnityEngine; using System.Collections; public class ExampleScript : MonoBehaviour { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_25f40739b5de_doc_1
github
scripting
What does `PoolBase` do in this Unity script? Explain its purpose and signature.
Initializes a new instance of the class with the specified pool configuration.The configuration data for the pool, including initial size, default capacity, and maximum size. Signature: ```csharp public PoolBase(PoolDatum poolDatum) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_6bc0f760733d
unity_docs
rendering
In Unity's 'Functions reference', what is 'Set manipulation' and how does it work?
Expression Description distinct {Variadic | AnyExpression} Produces the unique set union of multiple expressions. except {Iterable, Variadic | Iterable} Produces the set difference of two sequences. first {Number, Variadic | Iterable} Returns the first result for each expression. groupBy {Iterable, Optional | Selector}...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_971c632aad92
unity_docs
ui
What is `UIElements.Scroller.ScrollPageDown` in Unity? Explain its purpose and usage.
Scroller.ScrollPageDown Declaration public void ScrollPageDown (); Description Will change the value according to the current slider pageSize. Declaration public void ScrollPageDown (float factor ); Description Will change the value according to the current slider pageSize.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83a890603ada
unity_docs
editor
Give me an overview of the `EditorJsonUtility` class in Unity.
EditorJsonUtility class in UnityEditor Description Utility functions for working with JSON data and engine objects. Additional resources: JsonUtility Static Methods Method Description FromJsonOverwrite Overwrite data in an object by reading from its JSON representation. ToJson Generate a JSON representation...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0f5fac8f8321
unity_docs
rendering
In Unity's 'Smooth hard edges in lightmaps', what is 'Using seam stitching' and how does it work?
You can enable seam stitching on any GameObject with a Mesh Renderer component. In the Mesh Renderer Inspector , navigate to the Lightmapping section and Stitch Seams . Alternatively, you can use the MeshRenderer.stitchLightmapSeams API.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ee87213d7042
unity_docs
animation
What is `Animations.AnimationScriptPlayable.Create` in Unity? Explain its purpose and usage.
AnimationScriptPlayable.Create Declaration public static Animations.AnimationScriptPlayable Create ( Playables.PlayableGraph graph , T jobData , int inputCount ); Parameters Parameter Description graph The PlayableGraph object that will own the AnimationScriptPlayable. job The IAnimationJob to execu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebdf5ce534fb
unity_docs
physics
What are the parameters of `Physics.CapsuleCast` in Unity?
Returns bool True when the capsule sweep intersects any collider, otherwise false. Description Casts a capsule against all colliders in the Scene and returns detailed information on what was hit. The capsule is defined by the two spheres with radius around point1 and point2 , which form the two ends of the capsule. Hit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8423125e3f44
unity_docs
scripting
Show me a Unity C# example demonstrating `Video.VideoPlayer.frameReady`.
er also emits this event if you call VideoPlayer.Pause on a VideoPlayer that's not prepared yet or isn’t currently playing. When you call Pause() on a VideoPlayer that's not prepared or playing, it behaves as if you called Play() and then immediately called Pause() . This allows you to seek to a certain point in...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48223483add9
unity_docs
scripting
What is `WSA.Cursor` in Unity? Explain its purpose and usage.
Cursor class in UnityEngine.WSA / Implemented in: UnityEngine.CoreModule Description Cursor API for Windows Store Apps. Static Methods Method Description SetCustomCursor Set a custom cursor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9fd647b2d443
unity_docs
rendering
What are the parameters of `AssetDatabase.GetAssetPath` in Unity?
Returns string The asset path name, or an empty string if the asset doesn't exist. Description Returns the path name relative to the project folder where the asset is stored. All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png". ```csharp using UnityEngine; using UnityEditor;public c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_41e148c7b013
unity_docs
scripting
Show me a Unity C# example demonstrating `Search.SearchExpression.ProcessValues`.
to returns a new value for the item. Returns IEnumerable<SearchItem> Yield a new list of items that have been transformed. Description Take a group of SearchItems and apply a processHandler transformer function to the item in order to sets its internal value or an outputValueField. Note that these items are pro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_192197580b25
unity_docs
scripting
What is `UIElements.TextValueField_1.formatString` in Unity? Explain its purpose and usage.
TextValueField<T0>.formatString public string formatString ; Description The format string used to define how numeric values are displayed. The string follows standard .NET formatting conventions. The supported numeric formats string (using 0 as an example) are: - "0.#" : Displays the numeric value wit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_51893d14fb36
unity_docs
scripting
Explain 'Create high-precision occlusion areas' in Unity.
Use the Occlusion Area component to define View Volumes in the occlusion culling system. View Volumes are areas of the Scene where the Camera is likely to be located at runtime. At bake time, Unity generates higher precision data within View Volumes. At runtime, Unity performs higher precision calculations when the Cam...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e253d137f2a
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.B8G8R8A8_SInt` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.B8G8R8A8_SInt Description A four-component, 32-bit signed integer format that has an 8-bit B component in byte 0, an 8-bit G component in byte 1, an 8-bit R component in byte 2, and an 8-bit A component in byte 3.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8ffec513cbfe
unity_docs
editor
What is `Search.ItemSelectors` in Unity? Explain its purpose and usage.
ItemSelectors class in UnityEditor.Search Description Utility class to generate search column with item selectors. Static Methods Method Description CreateColumn Create a search column. Enumerate Enumerate search column for a given set of search items. GetItemContentStyle Returns the default item GUI style u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af0c7b5d3c8e
unity_docs
scripting
What is `WSA.SecondaryTileData.lockScreenDisplayBadgeAndTileText` in Unity? Explain its purpose and usage.
SecondaryTileData.lockScreenDisplayBadgeAndTileText public bool lockScreenDisplayBadgeAndTileText ; Description Whether to show secondary tile on lock screen. Lock screen notifications must be enabled in applications manifest for this to work. Defaults to false.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4d1422a8e7b0
unity_docs
rendering
In Unity's 'Noise module reference', what is 'Properties' and how does it work?
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time . Property Function Separate Axes Control the strength and remapping independently on each axis. Strength A curve that defines how strong the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cc1ee2426d26
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.ctor`.
PBXProject Constructor Declaration public PBXProject (); Description Creates a new instance of PBXProject class. ```csharp using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEditor; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class Samp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0a464d501ae4
unity_docs
math
Show me a Unity C# example demonstrating `Quaternion.SetLookRotation`.
directions. This method updates the existing quaternion in place, unlike Quaternion.LookRotation which returns a new quaternion. If used to orient a Transform , the Z axis is aligned with the forward direction vector and the Y axis with the upwards direction vector, assuming these vectors are orthogonal. Logs an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f3099294f1c1
github
scripting
Write a Unity C# MonoBehaviour script called Explosive
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; public class Explosive : MonoBehaviour { // A common pattern would be to combine particle effect, and audio in the explosion prefab. public GameObject explosionPrefab; void OnCollisionEnter() { // Destroy t...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_9c1000775906
unity_docs
rendering
In Unity's 'Optimize baking', what is 'How to optimize your bake speed' and how does it work?
There are several ways you can reduce bake times and avoid situations where bakes exceed the VRAM available to the GPU designated for baking. Close other GPU-accelerated applications. GPU-accelerated 2D image editing and 3D modelling software uses VRAM. Turn off accelerated graphics functionality or quit these applicat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bcc610a114a0
unity_docs
scripting
What is `ParticleSystem.ExternalForcesModule.GetInfluence` in Unity? Explain its purpose and usage.
ParticleSystem.ExternalForcesModule.GetInfluence Declaration public ParticleSystemForceField GetInfluence (int index ); Parameters Parameter Description index The index to return the chosen Force Field from. Returns ParticleSystemForceField The ForceField from the list. Description Gets the Parti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_141dbde9ab4e
unity_docs
editor
What is `Search.ObjectIndexer.IndexWord` in Unity? Explain its purpose and usage.
ObjectIndexer.IndexWord Declaration public void IndexWord (int documentIndex , ref string word , bool exact , int scoreModifier ); Parameters Parameter Description documentIndex Document where the indexed word was found. word Word to add to the index. exact If true, we will also store an exact match e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a81cfb1f2efc
unity_docs
physics
What is `IMGUI.Controls.JointAngularLimitHandle.zHandleColor` in Unity? Explain its purpose and usage.
JointAngularLimitHandle.zHandleColor public Color zHandleColor ; Description Returns or specifies the color to use for the handle limiting motion around the z-axis. Defaults to Handles.zAxisColor . This value is multiplied with the value of Handles.color . Additional resources: xHandleColor , yHandleColor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4001a4e199d6
unity_docs
scripting
What is `UIElements.IStyle.unityFontStyleAndWeight` in Unity? Explain its purpose and usage.
IStyle.unityFontStyleAndWeight public StyleEnum<FontStyle> unityFontStyleAndWeight ; Description Font style and weight (normal, bold, italic) to draw the element's text. This property is inherited by default.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4cec13ad97c7
unity_docs
scripting
What is `SearchService.IFilterEngine_1.Filter` in Unity? Explain its purpose and usage.
IFilterEngine<T0>.Filter Declaration public bool Filter ( SearchService.ISearchContext context , string query , T objectToFilter ); Parameters Parameter Description context The search context. query The query string used for the search. objectToFilter The element to test against the search query. Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_24c4a436e6ee
unity_docs
animation
What is `StateMachineBehaviour.OnStateExit` in Unity? Explain its purpose and usage.
StateMachineBehaviour.OnStateExit(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex) Parameters Parameter Description animator The Animator evaluating this state machine. animatorStateInfo Information about the exited state. layerIndex The current layer being evaluated. Description Invo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9f489824c00b
unity_docs
scripting
Show me a Unity C# example demonstrating `Sprite.texture`.
Sprite.texture public Texture2D texture ; Description Get the reference to the used Texture. If packed this will point to the atlas, if not packed will point to the source Sprite. This only returns the Texture the Sprite is currently using. You cannot change the Texture using this. ```csharp //Attach this s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d57347994f92
unity_docs
math
What is `Mathf.Log10` in Unity? Explain its purpose and usage.
Mathf.Log10 Declaration public static float Log10 (float f ); Description Returns the base 10 logarithm of a specified number. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { // logarithm of 100 in base 10 // Prints 2 print(Mathf.Log10(100)); } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_183a03f77cf8
unity_docs
editor
What is `IMGUI.Controls.ArcHandle.fillColor` in Unity? Explain its purpose and usage.
ArcHandle.fillColor public Color fillColor ; Description Returns or specifies the color of the arc shape. This value is multiplied with the value of Handles.color at the time DrawHandle is called. Additional resources: SetColorWithoutRadiusHandle , SetColorWithRadiusHandle .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_597a3e068fcd
unity_docs
scripting
What is `VersionControl.Provider.DeleteChangeSets` in Unity? Explain its purpose and usage.
Provider.DeleteChangeSets Declaration public static VersionControl.Task DeleteChangeSets ( VersionControl.ChangeSets changesets ); Parameters Parameter Description changesets List of changetsets to delete. Description Starts a task that will attempt to delete the given changesets. Before the task can d...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_03661c87e42b
unity_docs
xr
What is `PlayerSettings.stereoRenderingPath` in Unity? Explain its purpose and usage.
PlayerSettings.stereoRenderingPath public static StereoRenderingPath stereoRenderingPath ; Description Active stereo rendering path Specifies which path Unity uses for VR rendering. (Additional resources: StereoRenderingPath .)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3a05632b24b4
unity_docs
rendering
In Unity's 'Framebuffer orientation', what is 'How Unity applies pre-rotation' and how does it work?
Unity applies pre-rotation when it renders directly to the device’s backbuffer, not when it renders to a Render Texture . To apply the rotation, Unity modifies the projection matrix which affects the UNITY_MATRIX_MVP and UNITY_MATRIX_P Built-in shader variables . This means that Unity applies the rotation in the vertex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_255f942ee0e6
unity_docs
rendering
What is `LightingSettings.autoGenerate` in Unity? Explain its purpose and usage.
Method group is Obsolete LightingSettings.autoGenerate Obsolete LightingSettings.autoGenerate is obsolete. public bool autoGenerate ; Description Deprecated as Auto Generate lighting is no longer supported. Whether the Unity Editor automatically precomputes lighting data when the Scene data changes. (Editor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_90c4fab9bd91
unity_docs
scripting
What is `Vector3.LerpUnclamped` in Unity? Explain its purpose and usage.
Vector3.LerpUnclamped Declaration public static Vector3 LerpUnclamped ( Vector3 a , Vector3 b , float t ); Parameters Parameter Description a Start value. This value is returned when t = 0 . b End value. This value is returned when t = 1 . t Value used to interpolate between or beyond a and b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db5988b13eae
unity_docs
rendering
What is `LODFadeMode.SpeedTree` in Unity? Explain its purpose and usage.
LODFadeMode.SpeedTree Description By specifying this mode, your LODGroup will perform a SpeedTree-style LOD fading scheme: For all the mesh LODs other than the last (most crude) mesh LOD, the fade factor is calculated as the percentage of the object's current screen height, compared to the whole range of the LOD. It...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_911de56af1fc
unity_docs
ui
In Unity's 'Runtime UI event system and input handling', what is 'Use UI Toolkit with different input systems' and how does it work?
Unity provides two input handling systems: the legacy Input Manager and the new Input System package . The Input Manager is part of the core Unity platform and serves as the default system unless you install the Input System package. The new Input System package provides greater flexibility and broader devices and plat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1fcac064139c
unity_docs
scripting
What is `Terrain.detailObjectDistance` in Unity? Explain its purpose and usage.
Terrain.detailObjectDistance public float detailObjectDistance ; Description Detail objects will be displayed up to this distance. Additional resources: detailObjectDensity . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Terrain.activeTerrain.detailObjectDistance = 40; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a9622b92cca
unity_docs
performance
Show me a Unity C# example demonstrating `Unity.Profiling.ProfilerMarker.Handle`.
ProfilerMarker.Handle public IntPtr Handle ; Description Gets native handle of the ProfilerMarker . Use Handle to obtain a native marker handle and extend funtionality of ProfilerMarker . ```csharp using System.Diagnostics; using System.Runtime.CompilerServices; using Unity.Collections.LowLevel.Unsafe; usi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_74b5c9830d64
unity_docs
animation
What is `Animations.AnimatorController.MakeUniqueParameterName` in Unity? Explain its purpose and usage.
AnimatorController.MakeUniqueParameterName Declaration public string MakeUniqueParameterName (string name ); Parameters Parameter Description name The desired name of the AnimatorParameter. Description Creates a unique name for the parameter.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_be7b315cf3c8
unity_docs
editor
What is `Android.AndroidProjectFiles` in Unity? Explain its purpose and usage.
AndroidProjectFiles class in UnityEditor.Android Description Stores C# representations of Gradle project files associated with custom modules or plug-ins(libraries). Use this class to pass Gradle configuration file objects to the AndroidProjectFilesModifier.OnModifyAndroidProjectFiles callback, allowing modific...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e509d089b465
unity_docs
xr
In Unity's 'Git dependencies', what is 'Using the HTTP/HTTPS protocol' and how does it work?
You can use the HTTPS protocol with the full URL: ``` { "dependencies": { "com.mycompany.mypackage": "https://github.example.com/myuser/myrepository.git" } } ``` If your Git server doesn’t support the.git extension, you can add the special git+ prefix, with or without the extension: ``` { "dependencies": { "com.my...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e1a3bc11e681
unity_docs
rendering
What is `ShaderUtil.CreateRayTracingShaderAsset` in Unity? Explain its purpose and usage.
ShaderUtil.CreateRayTracingShaderAsset Declaration public static Rendering.RayTracingShader CreateRayTracingShaderAsset ( AssetImporters.AssetImportContext context , string source ); Parameters Parameter Description context The context object the asset system uses to register shader dependencies. source...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_62798c280d53
unity_docs
scripting
What is `PrefabUtility.prefabInstanceReverting` in Unity? Explain its purpose and usage.
PrefabUtility.prefabInstanceReverting Parameters Parameter Description value Instance root GameObject. Description Unity calls this method automatically before a Prefab instance is reverted. Any revert operation, whether full or partial, will cause this event to be raised.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_12269eda7ba8
unity_docs
performance
What is `Unity.Jobs.LowLevel.Unsafe.BatchQueryJobStruct_1.Initialize` in Unity? Explain its purpose and usage.
BatchQueryJobStruct<T0>.Initialize Declaration public static IntPtr Initialize (); Description Initializes a BatchQueryJobStruct instance and returns a pointer to the internal structure System.IntPtr Pass the returned System.IntPtr to JobsUtility.JobScheduleParameters.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ad8f5f8bf708
unity_docs
rendering
What is `Camera.forceIntoRenderTexture` in Unity? Explain its purpose and usage.
Camera.forceIntoRenderTexture public bool forceIntoRenderTexture ; Description Should camera rendering be forced into a RenderTexture. If set to true camera rendering will always happen into a RenderTexture instead of direct into the backbuffer. This can be useful if you have no image effects but want to use c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16aa059284b9
unity_docs
animation
What is `Animation.Sample` in Unity? Explain its purpose and usage.
Animation.Sample Declaration public void Sample (); Description Samples animations at the current state. This is useful when you explicitly want to set up some animation state, and sample it once.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_05d720580a5c
unity_docs
physics
What is `ParticleSystem.collision` in Unity? Explain its purpose and usage.
ParticleSystem.collision public ParticleSystem.CollisionModule collision ; Description Script interface for the CollisionModule of a Particle System. This module allows particles to collide with a predefined list of planes, or with the 2D and 3D physics worlds. Particle System modules do not need to be reass...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_171f2b2354a3
unity_docs
scripting
What is `MenuItem.menuItem` in Unity? Explain its purpose and usage.
MenuItem.menuItem public string menuItem ; Description Holds a sanitized reference to the name of the menu item as a path. This field stores the value set by the itemName parameter passed to the constructor. The field is public only for the benefit of Unity systems. Initialize it via the constructor parameter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_de1f155bd8f2
unity_docs
rendering
What is `ParticleSystem.Particle.SetMeshIndex` in Unity? Explain its purpose and usage.
ParticleSystem.Particle.SetMeshIndex Declaration public void SetMeshIndex (int index ); Parameters Parameter Description index The Mesh index. Description Sets the Mesh index of the particle, used for choosing which Mesh a particle is rendered with.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c5b5148738e5
unity_docs
editor
What is `PlayerSettings.Android.minifyRelease` in Unity? Explain its purpose and usage.
PlayerSettings.Android.minifyRelease public static bool minifyRelease ; Description Enable to minify release build. Enable to minify your java code in release configuration. Use proguard configuration file to control the process. Note : Minification can sometimes remove needed code and produce non-working bina...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a2e0fae7425a
github
scripting
Write a Unity Editor script for Automated Tests Group Element
```csharp using AssetStoreTools.Validator.Data; using System.Collections.Generic; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace AssetStoreTools.Validator.UIElements { internal class AutomatedTestsGroupElement : VisualElement { private const string IconsPath = "Packages/...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
gh_ff281fc88466
github
scripting
Write a Unity C# XR/VR script for Omnideck Character Controller
```csharp /* Copyright 2023 MSE Omnifinity AB The code below is a simple example of using a standard Unity CharacterController attached to the SteamVR CameraRig for moving the Omnideck user around based on position data arriving from Omnideck. Licensed under the Apache License, Version 2.0 (the "Licens...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d281472da248
github
scripting
Write a Unity C# script called Callback
```csharp namespace Oculus.Platform { using UnityEngine; using System; using System.Collections.Generic; public static class Callback { #region Notification Callbacks: Exposed through Oculus.Platform.Platform internal static void SetNotificationCallback<T>(Message.MessageType type,...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_0132b4313009
unity_docs
rendering
Explain 'Introduction to Lightmap UVs' in Unity.
Lightmaps are pre-calculated lighting textures that store illumination for static geometry. Unity generates them via a multi-step process that transforms 3D mesh data into optimized 2D textures. Both the Realtime Global Illumination system and the Baked Global Illumination system use lightmaps, and therefore need light...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_461220d5c84a
unity_docs
math
What are the parameters of `Graphics.RenderPrimitivesIndirect` in Unity?
Description Renders primitives with GPU instancing and a custom shader using rendering command arguments from commandBuffer . This function provides a way to control rendering command arguments from GPU to render a given number of primitives and instances. Use RenderParams.worldBounds to define bounds to cull and sort ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d806750b409
unity_docs
scripting
What is `UIElements.BindingContext.dataSource` in Unity? Explain its purpose and usage.
BindingContext.dataSource public object dataSource ; Description The data source that was resolved for a given binding. If a Binding implements the IDataSourceProvider interface and provides its own data source, it will automatically be used as the resolved data source; otherwise the data source will b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5512e8dab40f
unity_docs
physics
What is `PhysicsVisualizationSettings.GetShowArticulationBodies` in Unity? Explain its purpose and usage.
PhysicsVisualizationSettings.GetShowArticulationBodies Declaration public static bool GetShowArticulationBodies (); Description Should Articulation Bodies be shown by the Physics Visualizer. Sleeping Articulation Bodies can be further filtered out by SetShowSleepingBodies . Additional resources: ArticulationB...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a4a0ce9adc2e
unity_docs
physics
What is `Handles.zTest` in Unity? Explain its purpose and usage.
Handles.zTest public static Rendering.CompareFunction zTest ; Description zTest of the handles. Default value is Always. This anchor shows the first downwards collider intersection. Depth pass lines appears green, depth fail, red. To use this example, attach this script to the object you wish to display the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1172b0530c0a
unity_docs
scripting
In Unity's 'Compile a static library as a Unity plug-in', what is '1. Download the Emscripten SDK' and how does it work?
You must download the Emscripten SDK that matches your version of Unity. To find the appropriate version of Emscripten for your Unity version, refer to Web native plug-ins for Emscripten . For download links and more information about how to install the Emscripten SDK, refer to Download and install (Emscripten).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e2fde164c670
unity_docs
ui
What is `Overlays.Overlay.CreatePanelContent` in Unity? Explain its purpose and usage.
Overlay.CreatePanelContent Declaration public UIElements.VisualElement CreatePanelContent (); Returns VisualElement Visual element containing the content of your overlay. Description Implement this method to return your visual element content.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7af2d0a1bbc
unity_docs
physics
Show me a Unity C# example demonstrating `BuildAssetBundleOptions.ForceRebuildAssetBundle`.
BuildAssetBundleOptions.ForceRebuildAssetBundle Description Force rebuild the assetBundles. This allows you to rebuild the assetBundle even if none of the included assets have changed. ```csharp //Create a folder (right click in the Assets folder and go to Create>Folder), and name it “Editor” if it doesn’t already...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ac6af6fa8d5
unity_docs
scripting
Give me an overview of the `PopupWindow` class in Unity.
PopupWindow class in UnityEditor / Inherits from: EditorWindow Description Class used to display popup windows that inherit from PopupWindowContent . Popup Windows are borderless, and not draggable or resizable. They also will automatically close when they lose focus. They are intended to show short-lived info...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b234382be90
unity_docs
rendering
What is `ParticleSystem.isStopped` in Unity? Explain its purpose and usage.
ParticleSystem.isStopped public bool isStopped ; Description Determines whether the Particle System is in the stopped state. This property is true after a call to ParticleSystem.Stop stops the system, if a non-looping system finishes playing and all its particles die, or if the system has not yet played. Par...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c2d78838bdc9
unity_docs
editor
Show me a Unity C# example demonstrating `PrefabUtility.RecordPrefabInstancePropertyModifications`.
changes and automatically includes changes in the undo system. Call RecordPrefabInstancePropertyModifications after making modifications to an instance of a Prefab to record those changes in the instance. If this method isn't called, changes made to the instance are lost and changes to the object aren't recorded in t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b0ebcc0c7f30
unity_docs
rendering
In Unity's 'Text effects', what is 'Apply text outlines' and how does it work?
To apply outlines to text, set the unity-text-outline property in a USS file, inline in UXML, or a C# script. unity-text-outline is a shorthand property that sets the following properties: -unity-text-outline-width : The width of the outline. -unity-text-outline-color : The color of the outline, either as a hex code or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7951608f3f1d
unity_docs
rendering
In Unity's 'Code examples: Call JavaScript and C/C++/C# functions in Unity', what is 'Call JavaScript code in Unity C# example' and how does it work?
The following code is an example of JavaScript code that your Unity C# script can call functions from. ``` mergeInto(LibraryManager.library, { Hello: function () { window.alert("Hello, world!"); }, HelloString: function (str) { window.alert(UTF8ToString(str)); }, PrintFloatArray: function (array, size) { for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed4bf47d8539
unity_docs
scripting
What is `AI.NavMeshLinkData` in Unity? Explain its purpose and usage.
NavMeshLinkData struct in UnityEngine.AI / Implemented in: UnityEngine.AIModule Description Used for runtime manipulation of links connecting polygons of the NavMesh. A typical use case is to connect different navigation meshes. Use the NavMesh.AddLink method to instantiate a link with these properties in the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b2a31d3e26c7
unity_docs
rendering
What is `Rendering.CommandBuffer.SetRayTracingTextureParam` in Unity? Explain its purpose and usage.
CommandBuffer.SetRayTracingTextureParam Declaration public void SetRayTracingTextureParam ( Rendering.RayTracingShader rayTracingShader , string name , Rendering.RenderTargetIdentifier rt ); Declaration public void SetRayTracingTextureParam ( Rendering.RayTracingShader rayTracingShader , int nameID , R...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_13276335478b
github
scripting
Write a Unity C# script called Voxel Generation System
```csharp /* * VoxelGenerationSystem.cs * Created by Arian - GameDevBox * YouTube Channel: https://www.youtube.com/@GameDevBox * * ------------------------------- * 📌 Description: * ECS System that generates voxels based on a heightmap blob asset. * * - Queries entities tagged with VoxelTag and co...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.