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_1d30545c17b0 | unity_docs | scripting | What is `OcclusionArea.size` in Unity? Explain its purpose and usage. | OcclusionArea.size
public
Vector3
size
;
Description
Size that the occlusion area will have.
```csharp
using UnityEngine;[RequireComponent(typeof(OcclusionArea))]
public class Example : MonoBehaviour
{
// Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z
void Start()
{
transform.Ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89a55c653c33 | unity_docs | physics | What is `Rendering.RenderPipelineGraphicsSettingsEditorUtility.RecreateRenderPipelineMatchingSettings` in Unity? Explain its purpose and usage. | RenderPipelineGraphicsSettingsEditorUtility.RecreateRenderPipelineMatchingSettings
Declaration
public static void
RecreateRenderPipelineMatchingSettings
(
Rendering.IRenderPipelineGraphicsSettings
settings
);
Parameters
Parameter
Description
settings
A
IRenderPipelineGraphicsSettings
used for filtering if... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_304f70d67d7a | unity_docs | scripting | Show me a Unity C# example demonstrating `ArticulationBody.GetRelativePointVelocity`. | ArticulationBody.GetRelativePointVelocity
Declaration
public
Vector3
GetRelativePointVelocity
(
Vector3
relativePoint
);
Description
The velocity relative to the articulation body at the point
relativePoint
.
Gets the velocity relative to the articulation body at the specified
relativePoint
.
```csharp
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c57bec8e21c1 | unity_docs | scripting | What is `Android.GetAssetPackStateAsyncOperation.keepWaiting` in Unity? Explain its purpose and usage. | GetAssetPackStateAsyncOperation.keepWaiting
public bool
keepWaiting
;
Description
Checks if the operation is still running.
Returns
true
if the operation is still running. Otherwise, returns
false
.
Once the property returns false,
GetAssetPackStateAsyncOperation.size
and
GetAssetPackStateAsyncOperation.s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6a1400f5f97 | unity_docs | math | What are the parameters of `Vector3.RotateTowards` in Unity? | Returns Vector3 The location that RotateTowards generates. Description Rotates a vector current towards target . This function is similar to MoveTowards except that the vector is treated as a direction rather
than a position. The current vector will be rotated round toward the target direction by an angle
of maxRadians... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b634c0f1a65 | unity_docs | ui | What are the parameters of `EditorGUILayout.IntSlider` in Unity? | Returns int The value that has been set by the user. Description Make a slider the user can drag to change an integer value between a min and a max. Create a grid of cloned Objects. ```csharp
using UnityEditor;
using UnityEngine;// Simple editor script that lets you clone your object in a gridpublic class IntSliderExam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9542d95d148 | unity_docs | performance | What is `HandleUtility.getAuthoringObjectForEntity` in Unity? Explain its purpose and usage. | HandleUtility.getAuthoringObjectForEntity
Parameters
Parameter
Description
value
The entity index.
Description
The user-defined callback that Unity uses to retrieve the Unity Object associated with a
DOTS Entity
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_275a009fc490 | unity_docs | math | Show me a Unity C# example demonstrating `Bounds.ctor`. | Bounds Constructor
Declaration
public
Bounds
(
Vector3
center
,
Vector3
size
);
Parameters
Parameter
Description
center
The location of the origin of the Bounds.
size
The dimensions of the Bounds.
Description
Creates a new Bounds.
Create a new Bounds with the given center and total size. Bound exten... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e75b736c388 | unity_docs | rendering | What is `PlayerSettings.stripUnusedMeshComponents` in Unity? Explain its purpose and usage. | PlayerSettings.stripUnusedMeshComponents
public static bool
stripUnusedMeshComponents
;
Description
Should unused
Mesh
components be excluded from game build?
When this setting is on, Mesh components (e.g. tangent vectors, vertex colors etc.)
that are not in use will be removed. This is good for game data si... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d6e1c5ed55a7 | unity_docs | animation | In Unity's 'Animate a GameObject', what is 'Record keyframes' and how does it work? | To record keyframes for the selected GameObject, click the Record button. This activates Animation Record Mode. During this mode, changes to the GameObject are recorded into the
Animation Clip
.
Once in
Record mode
you can add keyframes by setting the white Playback head to the desired time in the Animation time line, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7c4b38ecf2a8 | github | scripting | Write a Unity Editor script for Test Begin | ```csharp
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace E
{
public class TestBegin
{
[InitializeBeforeAllBehavioursMethod]
public static void Begin()
{
#if UNITY_EDITOR
BehaviourManager.OnDrawGizmosCallback += OnDrawGizmosCallback;
#endif
}... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_c6c8809c9ae1 | unity_docs | scripting | What is `MonoBehaviour.OnCollisionExit` in Unity? Explain its purpose and usage. | MonoBehaviour.OnCollisionExit(Collision)
Parameters
Parameter
Description
collision
The
Collision
data associated with this collision.
Description
OnCollisionExit is called when this collider/rigidbody has stopped touching another rigidbody/collider.
OnCollisionExit
receives an instance of the
Collision
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4341d944aab1 | unity_docs | ui | What is `UIElements.VisualElement.style` in Unity? Explain its purpose and usage. | VisualElement.style
public
UIElements.IStyle
style
;
Description
Sets the style values on a
VisualElement
.
The returned style data, computed from USS files or inline styles written to this object
in C#, doesn't represent the fully resolved styles, such as the final height and width of
a VisualElemen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1724f442d80c_doc_2 | github | scripting | What does `ToGeometryBatches` do in this Unity script? Explain its purpose and signature. | Converts strokes to multiple GeometryPools whose size is <= vertexLimit.The default vertexLimit is the maximum size allowed by Unity.If a single stroke exceeds the vertex limit, the stroke will be ignored.TODO: dangerous! vertexLimit should be a soft limit, with a hard limit of 65k
Signature:
```csharp
public IEnumera... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_6e895051bfe7 | unity_docs | editor | What are the parameters of `AssetDatabase.CreateAsset` in Unity? | Description Creates a new asset in a native Unity format. Use this method to create an asset in one of Unity's native formats. For a list of native asset formats, refer to Native asset importers reference . You can't use this method to create a prefab from a GameObject. To do this, use the PrefabUtility class instead. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_df2755c00d7d | unity_docs | rendering | In Unity's 'GPU Usage Profiler module', what is 'Chart categories' and how does it work? | The GPU Usage Profiler module’s chart has several different categories that you can use to investigate GPU timings:
Chart Description Opaque
Built-in rendering pipeline’s time to render opaque objects.
Transparent
Built-in rendering pipeline’s time to render transparent objects.
Shadows/Depth
Built-in rendering pipelin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4077eeb0e5a3 | unity_docs | scripting | What is `SystemLanguage.Turkish` in Unity? Explain its purpose and usage. | SystemLanguage.Turkish
Description
Turkish.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Turkish language
if (Application.systemLanguage == SystemLanguage.Turkish)
{
//Outputs into console that the system is Turki... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_905726a80ba7 | unity_docs | ui | What is `Experimental.GraphView.GraphView.ElementResized` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.ElementResized
Declaration
public delegate void
ElementResized
(
UIElements.VisualElement
visualElement
);
Parameters
Parameter
Description
visualElement
Resized element.
Description
Element resized delegate. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b63ac75232d | unity_docs | editor | Show me a Unity C# example demonstrating `GlobalObjectId`. | GlobalObjectIdentifierToObjectSlow
.
Methods in this struct are suffixed with
Slow
to indicate that they have performance impacts. If you use these methods in a large project within other performance-sensitive contexts such as
ISerializationCallbackReceiver.OnBeforeSerialize
or
ISerializationCallbackReceiver.OnAf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_730f3927c409 | unity_docs | rendering | What is `ModelImporter.materialName` in Unity? Explain its purpose and usage. | ModelImporter.materialName
public
ModelImporterMaterialName
materialName
;
Description
Material naming setting.
When importing new model Unity will generate material name based on this setting and then it will try to locate
existing material with such name, if no such material exists Unity will create a new m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7807b3ba15a | unity_docs | input | What is `UIElements.BaseBoolField.ctor` in Unity? Explain its purpose and usage. | BaseBoolField Constructor
Declaration
public
BaseBoolField
(string
label
);
Parameters
Parameter
Description
label
The Label text.
Description
Creates a
BaseBoolField
with a Label and a default manipulator.
The default manipulator makes it possible to activate the BaseBoolField with a left mouse cli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7d610cb50cf | unity_docs | rendering | What is `Rendering.BatchRendererGroup.SetGlobalBounds` in Unity? Explain its purpose and usage. | BatchRendererGroup.SetGlobalBounds
Declaration
public void
SetGlobalBounds
(
Bounds
bounds
);
Parameters
Parameter
Description
bounds
The center and the size of the global batch bounding box.
Description
Set the bounds of the
BatchRendererGroup
. The bounds should encapsulate the render bounds of every o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6aafdcfc3c6 | unity_docs | editor | What is `EditorBuildSettingsScene` in Unity? Explain its purpose and usage. | EditorBuildSettingsScene
class in
UnityEditor
Description
Represents entries in the Scenes list, as displayed in the
Build Profiles
window.
This class contains the path of a Scene and an enabled flag that indicates whether the Scene is enabled in the Build Profiles window or not.
You can use this class in combi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d2efe23acbbd | unity_docs | rendering | Explain 'Configure shadow resolution in the Built-In Render Pipeline' in Unity. | To calculate the resolution of a shadow map, Unity:
Determines the area of the screen view that the Light can illuminate. For directional lights, the whole screen can be illuminated. For Spot Lights and Point Lights, the area is the onscreen projection of the shape of the light’s extent: a sphere for point lights, or a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_170bfb5e0520 | unity_docs | animation | In Unity's 'Animation transitions', what is 'Transition properties' and how does it work? | To view the properties for a transition, select the transition line connecting two states in the
Animator window
. The properties appear in the Inspector window.
Use the following properties to adjust the transition and how it blends between the current and next state.
Property Function Has Exit Time
Exit Time
is a spe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f26f63883f41 | unity_docs | math | What is `Animations.TransformStreamHandle.SetGlobalTR` in Unity? Explain its purpose and usage. | TransformStreamHandle.SetGlobalTR
Declaration
public void
SetGlobalTR
(
Animations.AnimationStream
stream
,
Vector3
position
,
Quaternion
rotation
,
bool
useMask
);
Parameters
Parameter
Description
stream
The
AnimationStream
that holds the animated values.
position
The position of the transform i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d4fce0e1961 | unity_docs | scripting | What is `HingeJoint.limits` in Unity? Explain its purpose and usage. | HingeJoint.limits
public
JointLimits
limits
;
Description
Limit of angular rotation (in degrees) on the hinge joint.
The joint will be limited so that the angle is always between
JointLimits.min
and
JointLimits.max
.
The joint angle is in degrees relative to the rest angle. The rest angle between the bodi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e4da971618e | unity_docs | scripting | What is `PackageManager.UI.Sample.resolvedPath` in Unity? Explain its purpose and usage. | Sample.resolvedPath
public string
resolvedPath
;
Description
The full path to where the sample is on disk, inside the package that contains the sample.
It is usually in the form of `Resolved Full Path to Package/Samples~/Sample Display Name/`. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2ad07703b0a | unity_docs | editor | What is `GenericMenu.AddSeparator` in Unity? Explain its purpose and usage. | GenericMenu.AddSeparator
Declaration
public void
AddSeparator
(string
path
);
Parameters
Parameter
Description
path
The path to the submenu, if adding a separator to a submenu. When adding a separator to the top level of a menu, use an empty string as the path.
Description
Add a seperator item to the menu.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07947507c3e5 | unity_docs | physics | What is `ArticulationBody.SetDriveTargetVelocities` in Unity? Explain its purpose and usage. | ArticulationBody.SetDriveTargetVelocities
Declaration
public void
SetDriveTargetVelocities
(List<float>
targetVelocities
);
Parameters
Parameter
Description
targetVelocities
Supplied list of floats used to set the joint drive target velocities.
Description
Assigns articulation body joint drive target vel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18bdcb980fea | unity_docs | rendering | What is `SystemInfo.npotSupport` in Unity? Explain its purpose and usage. | SystemInfo.npotSupport
public static
NPOTSupport
npotSupport
;
Description
What NPOT (non-power of two size) texture support does the GPU provide? (Read Only)
Additional resources:
NPOTSupport
enum. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94e168c0ba83 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.GetDepthStencilFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.GetDepthStencilFormat
Declaration
public static
Experimental.Rendering.GraphicsFormat
GetDepthStencilFormat
(int
minimumDepthBits
,
int
minimumStencilBits
);
Parameters
Parameter
Description
minimu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3721906d297b | github | scripting | Write a Unity C# script called Addressable Prefab | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.Events;
using UnityEngine.ResourceManagement.AsyncOperations;
namespace PassivePicasso.SimplyAddress
{
[ExecuteAlways]
public class AddressablePrefab : SimpleAddress
{
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_7631e2c1d0a6 | unity_docs | scripting | What is `Connect.CoppaDrawer.exceptionCallback` in Unity? Explain its purpose and usage. | CoppaDrawer.exceptionCallback
Parameters
Parameter
Description
value
The value prior to the exception being thrown.
Description
An event that fires when an exception is thrown within the COPPA Compliance UI. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5752321bdd62 | unity_docs | animation | What is `Experimental.Animations.AnimationPlayableOutputExtensions.GetSortingOrder` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
AnimationPlayableOutputExtensions.GetSortingOrder
Declaration
public static ushort
GetSortingOrder
(
Animations.AnimationPlayableOutput
output
);
Parameters
Parameter
Description
output
The
AnimationPlayableOutput
inst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f986ed0c87b7 | unity_docs | audio | Explain 'Audio Mixer' in Unity. | ## Properties
Property:
Function:
S Button
Soloing the group.
M Button
Muting the group.
B Button
Bypassing all the effects in the group.
When you select Add you can select from a list of effects that can be applied to the group. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1dbcde48c4a5 | unity_docs | physics | What is `PhysicsVisualizationSettings.GetShowCollisionLayerMask` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.GetShowCollisionLayerMask
Declaration
public static int
GetShowCollisionLayerMask
();
Description
Should the mask representing the layers be considered by the display filter.
Additional resources:
LayerMask
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86abc4f5796d | unity_docs | math | What is `TerrainData.GetMaximumHeightError` in Unity? Explain its purpose and usage. | TerrainData.GetMaximumHeightError
Declaration
public float[]
GetMaximumHeightError
();
Returns
float[]
Float array of maximum height error values.
Description
Returns an array of tesselation maximum height error values per renderable terrain patch. The returned array can be modified and passed to
Override... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8b102fdb3605 | unity_docs | rendering | What is `ComputeShader.DispatchIndirect` in Unity? Explain its purpose and usage. | ComputeShader.DispatchIndirect
Declaration
public void
DispatchIndirect
(int
kernelIndex
,
ComputeBuffer
argsBuffer
,
uint
argsOffset
= 0);
Declaration
public void
DispatchIndirect
(int
kernelIndex
,
GraphicsBuffer
argsBuffer
,
uint
argsOffset
= 0);
Parameters
Parameter
Description
kernelIndex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3813f8eea02d | unity_docs | scripting | What is `GUI.GetNameOfFocusedControl` in Unity? Explain its purpose and usage. | GUI.GetNameOfFocusedControl
Declaration
public static string
GetNameOfFocusedControl
();
Description
Get the name of named control that has focus.
Control names are set up by using
SetNextControlName
. When a named control has focus, this function will return its name. If no control has focus or the focused co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b8c3266171b | unity_docs | math | What is `Rendering.RayTracingGeometryInstanceConfig.indexStart` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.indexStart
public uint
indexStart
;
Description
The first index from
indexBuffer
that defines this ray tracing geometry instance.
This value must be a multiple of 3 and together with
indexCount
it must define a valid range into
indexBuffer
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b80cf1920750 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.CustomObjectIndexerAttribute`. | he user to search for them using the
Search Query Language
. The registered function must be of type:
static void MyCustomIndexer(CustomObjectIndexerTarget context, ObjectIndexer indexer);
See
ObjectIndexer
for the various methods you can invoke on
indexer
.
The
CustomObjectIndexerTarget
context
argument can... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_273648f1de65 | unity_docs | rendering | In Unity's 'Default project directories', what is 'Assets' and how does it work? | Use the Assets folder to store all asset files related to your project, including scripts , textures, models, audio files, and
scenes
. For more information, refer to
Introduction to importing assets
.
The folder contains the following files and subfolders:
File or folder Description InputSystem_Actions
A default input... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62187785fcc9 | unity_docs | scripting | What is `GUISkin.FindStyle` in Unity? Explain its purpose and usage. | GUISkin.FindStyle
Declaration
public
GUIStyle
FindStyle
(string
styleName
);
Description
Try to search for a
GUIStyle
. This functions returns NULL and does not give an error.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Checks if a style name exists string aStyleName = "A Style I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fcf52dd8e571 | unity_docs | ui | What is `Experimental.GraphView.Resizer.activateButton` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Resizer.activateButton
public
UIElements.MouseButton
activateButton
;
Description
Mouse button to activate the resizer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e17de7b59eee | unity_docs | rendering | What is `AssetImporters.SketchupMaterialDescriptionPreprocessor` in Unity? Explain its purpose and usage. | SketchupMaterialDescriptionPreprocessor
class in
UnityEditor.AssetImporters
/
Inherits from:
AssetPostprocessor
Description
This is a default implementation for AssetPostProcessor.OnPreprocessMaterialDescription, this implementation converts material descriptions imported from Sketchup assets into materials for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60af757dfcc3 | unity_docs | rendering | Show me a Unity C# example demonstrating `Material.mainTextureScale`. | MainTexture]
ShaderLab Properties attribute
to make Unity consider a texture with a different property name to be the main texture.
This is the same as calling
Material.GetTextureScale
or
Material.SetTextureScale
with the property name of the main texture as a parameter.
Additional resources:
SetTextureScale
, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45eed9f27953 | unity_docs | editor | What is `Overlays.OverlayAttribute.editorWindowType` in Unity? Explain its purpose and usage. | OverlayAttribute.editorWindowType
public Type
editorWindowType
;
Description
Defines which
EditorWindow
type the overlay is used in.
To make an overlay available in all Editor windows, specify
EditorWindow
as the type. To make the overlay available in the Scene view only, set
SceneView
as the type. If you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5e8026e047a | unity_docs | input | What is `IMGUI.Controls.TreeView.SetFocusAndEnsureSelectedItem` in Unity? Explain its purpose and usage. | TreeView.SetFocusAndEnsureSelectedItem
Declaration
public void
SetFocusAndEnsureSelectedItem
();
Description
Calling this function changes the keyboard focus to the TreeView and ensures an item is selected. Use this function to enable key navigation of the TreeView. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2bbede741007 | unity_docs | rendering | What is `LightTransport.IDeviceContext.DestroyBuffer` in Unity? Explain its purpose and usage. | IDeviceContext.DestroyBuffer
Declaration
public void
DestroyBuffer
(
LightTransport.BufferID
id
);
Parameters
Parameter
Description
id
ID of the buffer to destroy.
Description
Destroy the buffer with the given ID. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da8fa0978328 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.IsValidNativeContainerElementType` in Unity? Explain its purpose and usage. | UnsafeUtility.IsValidNativeContainerElementType
Declaration
public static bool
IsValidNativeContainerElementType
(Type
type
);
Declaration
public static bool
IsValidNativeContainerElementType
();
Parameters
Parameter
Description
type
The
System.Type
to check.
Returns
bool
True if type is acceptable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51617cb4dfa2 | unity_docs | math | What is `Rendering.BatchDrawCommandIndirect.sortingPosition` in Unity? Explain its purpose and usage. | BatchDrawCommandIndirect.sortingPosition
public int
sortingPosition
;
Description
Together with
BatchDrawCommand.flags
, this specifies how to depth sort the instances in this draw command.
If
BatchDrawCommandFlags.HasSortingPosition
is set, this contains the index of the first position in the
BatchCulling... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_749f47c2850a_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | class GameObjectFactoryThe class is an implementation of IGameObjectFactory that should be usedas a replacement of GameObject.Instantiate
Signature:
```csharp
public class GameObjectFactory: IGameObjectFactory
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d65850b0730a | unity_docs | performance | What is `Profiling.Profiler.GetAreaEnabled` in Unity? Explain its purpose and usage. | Profiler.GetAreaEnabled
Declaration
public static bool
GetAreaEnabled
(
Profiling.ProfilerArea
area
);
Parameters
Parameter
Description
area
Which area you want to check the state of.
Returns
bool
Returns whether or not a given
ProfilerArea
is currently enabled.
Description
Returns whether or not ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72f8e46588ca | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.showActivityIndicatorOnLoading`. | PlayerSettings.Android.showActivityIndicatorOnLoading
public static
AndroidShowActivityIndicatorOnLoading
showActivityIndicatorOnLoading
;
Description
Application should show ActivityIndicator when loading.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class ShowActivityIndic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d96bbccbed32 | unity_docs | physics | Show me a Unity C# example demonstrating `Rigidbody.GetAccumulatedTorque`. | ector3
GetAccumulatedTorque
(float
step
= Time.fixedDeltaTime);
Parameters
Parameter
Description
step
The timestep of the next physics simulation.
Returns
Vector3
Accumulated torque expressed in
ForceMode.Force
.
Description
Returns the torque that the
Rigidbody
has accumulated before the simulati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fa3ee2b296c | unity_docs | scripting | What is `Unity.IntegerTime.DiscreteTime.FromTicks` in Unity? Explain its purpose and usage. | DiscreteTime.FromTicks
Declaration
public static
Unity.IntegerTime.DiscreteTime
FromTicks
(long
v
);
Parameters
Parameter
Description
v
The tick count.
Returns
DiscreteTime
The DiscreteTime representation.
Description
Explicitly converts a tick value to a DiscreteTime value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cd79c34a792 | unity_docs | rendering | What is `Rendering.BuiltinShaderDefine.UNITY_NO_SCREENSPACE_SHADOWS` in Unity? Explain its purpose and usage. | BuiltinShaderDefine.UNITY_NO_SCREENSPACE_SHADOWS
Description
UNITY_NO_SCREENSPACE_SHADOWS is set when screenspace cascaded shadow maps are disabled.
Additional resources:
TierSettings.cascadedShadowMaps
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f115ed5b866 | unity_docs | editor | What is `SceneManagement.SceneManager.loadedSceneCount` in Unity? Explain its purpose and usage. | SceneManager.loadedSceneCount
public static int
loadedSceneCount
;
Description
The number of loaded Scenes.
Returns the current number of loaded Scenes. This doesn't include the Scenes that are currently loading or unloading. For the total number of Scenes see
SceneManager.sceneCount
.
```csharp
using UnityEn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_30b415641c83 | unity_docs | ui | Explain 'Create a complex list view' in Unity. | This example demonstrates how to create a complex ListView.
## Example overview
The example creates a custom Editor window with a list of characters. Each character has a slider and a color palette. Moving the slider changes the color of the palette.
You can find the completed files that this example creates in this
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ccd6e87b00f5 | unity_docs | rendering | In Unity's 'Introduction to GameObjects', what is 'Details' and how does it work? | A GameObject always has a Transform component attached (to represent position and orientation) and it is not possible to remove this. The other components that give the object its functionality can be added from the editor’s Component menu or from a script. There are also many useful pre-constructed objects (primitive ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46bf2c7d55a1 | unity_docs | scripting | What is `ILogger.Log` in Unity? Explain its purpose and usage. | ILogger.Log
Declaration
public void
Log
(
LogType
logType
,
object
message
);
Declaration
public void
Log
(
LogType
logType
,
object
message
,
Object
context
);
Declaration
public void
Log
(
LogType
logType
,
string
tag
,
object
message
);
Declaration
public void
Log
(
LogType
logType
,
st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97a5aa83c333 | unity_docs | scripting | What is `SpriteMetaData.alignment` in Unity? Explain its purpose and usage. | SpriteMetaData.alignment
public int
alignment
;
Description
Edge-relative alignment of the sprite graphic.
The possible values relate to the SpriteAlignment enum as follows:
Center = 0, TopLeft = 1, TopCenter = 2, TopRight = 3, LeftCenter = 4, RightCenter = 5, BottomLeft = 6, BottomCenter = 7, BottomRight = 8, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e7c31e29b20 | unity_docs | scripting | What are the parameters of `Search.SearchExpression.Execute` in Unity? | Returns void Returns an enumerable list of SearchItem. Description Execute a SearchEXpression givent a certain SearchContext Depending on flags the expression might be valuated in a worker thread (by default) or in the main thread. It returns a an enumerable list of SearchItem . ```csharp
[SearchExpressionEvaluator(Sea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c919a8b4a411 | unity_docs | scripting | What is `Quaternion.ctor` in Unity? Explain its purpose and usage. | Quaternion Constructor
Declaration
public
Quaternion
(float
x
,
float
y
,
float
z
,
float
w
);
Description
Constructs new Quaternion with given x,y,z,w components.
```csharp
//Create three Sliders (Create>UI>Slider) and three Text GameObjects (Create>UI>Text). These are for manipulating the x, y, and z val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bf5cf5c5d6e1_doc_4 | github | scripting | What does `IsIndexExtended` do in this Unity script? Explain its purpose and signature. | Returns true if the given hand's index finger tip is farther from the wrist than the index intermediate joint.Hand to check for the required pose.True if the given hand's index finger tip is farther from the wrist than the index intermediate joint, false otherwise.
Signature:
```csharp
static bool IsIndexExtended(XRHa... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_27d2d8369d4e | unity_docs | scripting | Explain 'Managing assets at runtime' in Unity. | Unity has several options for managing and loading assets at runtime, including dynamically loading assets with AssetBundles, or the Addressables package to reduce the size of your build and distribute content updates.
Topic Description Introduction to asset management
Understand Unity’s asset management options.
Direc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2a32745f2c5 | unity_docs | rendering | What are the parameters of `Rendering.GraphicsSettings.TrySetCurrentRenderPipelineGlobalSettings` in Unity? | Returns bool Returns true if the asset was not null and Unity successfully applied the settings. Description Attempts to set the active RenderPipelineGlobalSettings at runtime. This method lets you assign the RenderPipelineGlobalSettings asset at runtime.
Use this method when you need to activate a Ren... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce0f2736f863 | unity_docs | editor | What is `Device.SystemInfo.supportsInlineRayTracing` in Unity? Explain its purpose and usage. | SystemInfo.supportsInlineRayTracing
public static bool
supportsInlineRayTracing
;
Description
This property has the same functionality as
SystemInfo.supportsInlineRayTracing
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee68a48726b9 | unity_docs | rendering | What is `ModelImporterMaterialImportMode` in Unity? Explain its purpose and usage. | ModelImporterMaterialImportMode
enumeration
Description
Material import options for
ModelImporter
.
Determines the method used to handle materials in the Model Importer.
Properties
Property
Description
None
The model importer does not import materials.
ImportStandard
The model importer imports materials in s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c8e83607d661 | unity_docs | audio | Explain 'Audio Mixer' in Unity. | The Unity Audio Mixer allows you to mix various audio sources, apply effects to them, and perform mastering.
## Audio Mixer window
The window displays the Audio Mixer which is basically a tree of Audio Mixer Groups. An Audio Mixer group (bus) is a mix of audio signals processed through a signal chain which allows you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7534c4bce4a | unity_docs | math | What is `Rendering.BatchCullingOutputDrawCommands.indirectDrawCommands` in Unity? Explain its purpose and usage. | BatchCullingOutputDrawCommands.indirectDrawCommands
public BatchDrawCommandIndirect*
indirectDrawCommands
;
Description
The array that contains indirect draw commands to render as the result of the OnPerformCulling call.
This can contain as many indirect commands as necessary, and each command can render multip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83c405d72c00 | unity_docs | physics | What is `Collider2D.Overlap` in Unity? Explain its purpose and usage. | Collider2D.Overlap
Declaration
public int
Overlap
(
Vector2
position
,
float
angle
,
List<Collider2D>
results
);
Parameters
Parameter
Description
position
The position to overlap the Collider at.
angle
The angle to overlap the Collider at.
results
The list to receive results.
Returns
int
Returns t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_287120a92924_doc_4 | github | scripting | What does `PumpMovieLoad` do in this Unity script? Explain its purpose and signature. | Pump movie loading (call each frame during load). Returns true when done.
Signature:
```csharp
public bool PumpMovieLoad()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b42126f5f59 | unity_docs | scripting | Show me a Unity C# example demonstrating `Caching.MoveCacheAfter`. | Caching.MoveCacheAfter
Declaration
public static void
MoveCacheAfter
(
Cache
src
,
Cache
dst
);
Parameters
Parameter
Description
src
The Cache to move.
dst
The Cache which should come before the source Cache in the cache list.
Description
Moves the source Cache after the destination Cache in the cach... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8eee72531864 | unity_docs | animation | What is `Animations.TransformSceneHandle.GetLocalToWorldMatrix` in Unity? Explain its purpose and usage. | TransformSceneHandle.GetLocalToWorldMatrix
Declaration
public
Matrix4x4
GetLocalToWorldMatrix
(
Animations.AnimationStream
stream
);
Parameters
Parameter
Description
stream
The AnimationStream that manages this handle.
Returns
Matrix4x4
Returns the local to world matrix.
Description
Gets the local... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f8a4094596a | unity_docs | editor | What is `Toolbars.EditorToolbarFloatField.ctor` in Unity? Explain its purpose and usage. | EditorToolbarFloatField Constructor
Declaration
public
EditorToolbarFloatField
();
Description
Creates a float field visual element that is styled to match a toolbar in an UnityEditor.Overlays.Overlay. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f04f55162f0f | unity_docs | math | What is `Ray2D.GetPoint` in Unity? Explain its purpose and usage. | Ray2D.GetPoint
Declaration
public
Vector2
GetPoint
(float
distance
);
Parameters
Parameter
Description
distance
Distance of the desired point along the path of the ray.
Description
Get a point that lies a given distance along a ray.
The distance is measured away from the ray's origin along its direction... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3cacb77941fb | unity_docs | scripting | What is `SerializedPropertyType.ObjectReference` in Unity? Explain its purpose and usage. | SerializedPropertyType.ObjectReference
Description
Provides a reference to an object that derives from UnityEngine.Object.
Additional resources:
SerializedProperty
,
SerializedProperty.objectReferenceValue
,
SerializedPropertyType.ManagedReference
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_967a6307b5d9_doc_6 | github | scripting | What does `OverrideTilingRule` do in this Unity script? Explain its purpose and signature. | The default overriding Tiling Rule
Signature:
```csharp
public OverrideTilingRule m_OverrideDefault = new OverrideTilingRule();
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_138716c3698b | unity_docs | rendering | What is `GUI.GroupScope.ctor` in Unity? Explain its purpose and usage. | GUI.GroupScope Constructor
Declaration
public
GUI.GroupScope
(
Rect
position
);
Declaration
public
GUI.GroupScope
(
Rect
position
,
string
text
);
Declaration
public
GUI.GroupScope
(
Rect
position
,
Texture
image
);
Declaration
public
GUI.GroupScope
(
Rect
position
,
GUIContent
content
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f21bfe47ab86 | unity_docs | animation | Give me an overview of the `AnimatorUtility` class in Unity. | AnimatorUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Various utilities for animator manipulation.
Static Methods
Method
Description
DeoptimizeTransformHierarchy
This function will recreate all transform hierarchy under GameObject.
OptimizeTransformHierarchy
This fun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_17b1f36f1df8 | unity_docs | scripting | Explain 'Direct reference asset management' in Unity. | Direct reference asset management is the default way of managing assets at runtime in Unity. Whenever you drag an asset into a scene or onto a component through the Inspector window of the Unity Editor, you create a direct reference to that asset. When you build your application, Unity saves any referenced assets in a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67b96b93ae2a | unity_docs | math | What is `Gradient.SetKeys` in Unity? Explain its purpose and usage. | Gradient.SetKeys
Declaration
public void
SetKeys
(GradientColorKey[]
colorKeys
,
GradientAlphaKey[]
alphaKeys
);
Parameters
Parameter
Description
colorKeys
Color keys of the gradient (maximum 8 color keys).
alphaKeys
Alpha keys of the gradient (maximum 8 alpha keys).
Description
Setup Gradient with an a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7bc756dfc82b | unity_docs | scripting | What is `GridBrushBase.RotationDirection` in Unity? Explain its purpose and usage. | RotationDirection
enumeration
Description
Rotate tiles in the
GridBrushBase
in this direction.
Properties
Property
Description
Clockwise
Rotates tiles clockwise.
CounterClockwise
Rotates tiles counter-clockwise. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46637ef6af57 | unity_docs | physics | Give me an overview of the `ParticleSystemOverlapAction` class in Unity. | ParticleSystemOverlapAction
enumeration
Description
What action to perform when the particle trigger module passes a test.
Properties
Property
Description
Ignore
Do nothing.
Kill
Kill all particles that pass this test.
Callback
Send the OnParticleTrigger command to the Particle System's script. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89da9befdc59 | unity_docs | editor | Show me a Unity C# example demonstrating `Unity.Android.Gradle.AssignType`. | AssignType
enumeration
Description
An assign type for property elements.
Properties in gradle files use different ways to assign a value. Use the
AssignType
parameter to choose which way to assign the property value.
```csharp
using Unity.Android.Gradle;
using UnityEditor.Android;public class ModifyProject : An... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9a76b3a77f6 | unity_docs | editor | What is `Device.SystemInfo.maxTiledPixelStorageSize` in Unity? Explain its purpose and usage. | SystemInfo.maxTiledPixelStorageSize
public static int
maxTiledPixelStorageSize
;
Description
This has the same functionality as
SystemInfo.maxTiledPixelStorageSize
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_380289ef488b | unity_docs | physics | Explain 'Primitive and placeholder objects' in Unity. | In the Unity Editor, you can work with 3D models of any shape that you can create with modeling software. You can create several object types in the Editor, for example, the:
Cube Sphere Capsule Cylinder Plane Quad To add a primitive to a scene, select
GameObject
>
3D Object
and select the required primitive. This adds... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c419ebc794c2 | unity_docs | scripting | Give me an overview of the `MenuItem` class in Unity. | MenuItem
class in
UnityEditor
Description
The
MenuItem
attribute allows you to add menu items to the main menu and Inspector window context menus.
The
MenuItem
attribute turns any static function into a menu command. Only static functions can use the
MenuItem
attribute.
To create a hotkey, use the following... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eac42742ac90 | unity_docs | math | What is `AndroidJNI.CallStringMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallStringMethod
Declaration
public static string
CallStringMethod
(IntPtr
obj
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
This is a convenience function that calls CallObjectM... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_db6efaac45c2 | unity_docs | physics | Explain 'Command line arguments for UWP' in Unity. | You can launch Unity Players from the command line and pass in arguments to change how the Player executes. Universal Windows Platform (UWP) apps don’t accept command line arguments by default, so you have to pass them to an AppCallbacks constructor in
App.xaml.cpp or App.cpp
to specify them.
This code example demonstr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae6a1f18145c | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.AddFileToBuild` in Unity? | Description Configure a file to build for the given native target. In projects containing multiple native targets, you can configure a single file or folder reference to build in all, some, or none of the targets. The file or folder reference is added to appropriate build section depending on the file extension. ```csh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_25f40739b5de_doc_6 | github | scripting | What does `DestroyAll` do in this Unity script? Explain its purpose and signature. | Destroys all objects in the pool, clearing both active and released objects lists, and clearing the pool.
Signature:
```csharp
internal void DestroyAll()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9aa151b304f | unity_docs | performance | What are the parameters of `Profiling.Profiler.AddFramesFromFile` in Unity? | Description Displays the recorded profile data in the profiler. The Profiler appends the loaded data after the last frame in its buffer. ```csharp
using UnityEngine;
using System.Collections;
using UnityEngine.Profiling;public class ExampleClass : MonoBehaviour
{
void Example()
{
Profiler.AddFramesFromF... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4e32d47677c5 | unity_docs | rendering | In Unity's 'Input data into HLSL', what is 'Declare a custom structure' and how does it work? | To declare a custom vertex structure, follow these steps:
At the top of your HLSLPROGRAM , add a struct that declares a variable for each input you want to access from the mesh.
In each variable declaration, add a semantic that connects the variable to the mesh data. For more information about semantics, refer to Seman... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_40808c30d416 | unity_docs | ui | Explain 'Work with elements' in Unity. | The most basic building block in UI Toolkit is a `VisualElement’. These elements are ordered into a hierarchy tree with parent-child relationships. This is called the
visual tree
.
## Add elements
You need to add elements to the hierarchy to create UI. To add an element to the hierarchy in UI Builder, drag it from th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45e3c377cae9 | unity_docs | rendering | What is `Rendering.ShadowDrawingSettings.batchLayerMask` in Unity? Explain its purpose and usage. | ShadowDrawingSettings.batchLayerMask
public uint
batchLayerMask
;
Description
Unity renders objects whose
BatchFilterSettings.batchLayer
value is enabled in this bit mask.
Unity renders the object if you enable the
BatchFilterSettings.batchLayer
value in this bit mask. You can use
BatchFilterSettings.batch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec423e40ac7d | unity_docs | rendering | What is `TrailRenderer.endWidth` in Unity? Explain its purpose and usage. | TrailRenderer.endWidth
public float
endWidth
;
Description
The width of the trail at the end of the trail.
A width of 1 corresponds to 1 unit in the game world.
Additional resources:
startWidth
variable. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_83fb9db5bf84 | github | scripting | Write a Unity C# UI script for Game Start Menu | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class GameStartMenu : MonoBehaviour
{
[Header("UI Pages")]
public GameObject start;
public GameObject tutorial;
public GameObject mainMenu;
public... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.