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_12e95d5a8ed7 | unity_docs | editor | What is `EditorGUI.BeginFoldoutHeaderGroup` in Unity? Explain its purpose and usage. | EditorGUI.BeginFoldoutHeaderGroup
Declaration
public static bool
BeginFoldoutHeaderGroup
(
Rect
position
,
bool
foldout
,
string
content
,
GUIStyle
style
= EditorStyles.foldoutHeader,
Action<Rect>
menuAction
,
GUIStyle
menuIcon
);
Declaration
public static bool
BeginFoldoutHeaderGroup
(
Rect
positi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_190d7ca98d41 | unity_docs | animation | What is `RuntimeAnimatorController` in Unity? Explain its purpose and usage. | RuntimeAnimatorController
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.AnimationModule
Description
The runtime representation of the
AnimatorController
. Use this representation to change the Animator Controller during runtime.
Properties
Property
Description
animationClips
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad955d555e37 | unity_docs | scripting | What is `Vector3.back` in Unity? Explain its purpose and usage. | Vector3.back
public static
Vector3
back
;
Description
Shorthand for writing
Vector3(0, 0, -1)
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Example()
{
transform.position += Vector3.back * Time.deltaTime;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_051b3c2c49ec | unity_docs | ui | What is `UIElements.VisualElement.GetHierarchicalDataSourceContext` in Unity? Explain its purpose and usage. | VisualElement.GetHierarchicalDataSourceContext
Declaration
public
UIElements.DataSourceContext
GetHierarchicalDataSourceContext
();
Returns
DataSourceContext
A context object with the hierarchical data source and data source path.
Description
Queries the dataSource and dataSourcePath inherited from the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2c99b972d2cc_doc_4 | github | scripting | What does `EnableMagicLeapXRPlugin` do in this Unity script? Explain its purpose and signature. | Enables Magic Leap 2 XR on the available Build Target Group
Signature:
```csharp
public static void EnableMagicLeapXRPlugin()
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_b64a22443869 | unity_docs | ui | What is `UIElements.UIDocument.panelSettings` in Unity? Explain its purpose and usage. | UIDocument.panelSettings
public
UIElements.PanelSettings
panelSettings
;
Description
Specifies the PanelSettings instance to connect this UIDocument component to.
The Panel Settings asset defines the panel that renders UI in the game view. See
PanelSettings
.
If this UIDocument has a parent UIDocument, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eee22fffddb6 | unity_docs | xr | In Unity's 'Set up your 3D panoramic video', what is 'Set up your 360° 3D panoramic video' and how does it work? | 360° 3D panoramic videos provide a fully immersive view of the scene.
To enable your panoramic video for 3D:
Click on your skybox material (panoramic or cubemap).
Set
3D Layout
to the layout of your panoramic video. For more information on the options, refer to
3D panoramic videos
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48f350d52379 | unity_docs | editor | What is `EditorGUI.ChangeCheckScope` in Unity? Explain its purpose and usage. | ChangeCheckScope
class in
UnityEditor
Description
Check if any control was changed inside a block of code.
When needing to check if
GUI.changed
is set to true inside a block of code,
wrap the code inside a ChangeCheckScope like this:
```csharp
using UnityEditor;class ExampleClass
{
void ExampleMethod()
{
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e25df434445 | unity_docs | scripting | What is `UIElements.MultiColumnController.PrepareView` in Unity? Explain its purpose and usage. | MultiColumnController.PrepareView
Declaration
public void
PrepareView
(
UIElements.BaseVerticalCollectionView
collectionView
);
Parameters
Parameter
Description
collectionView
The view to register to.
Description
Initialization step once the view is set.
It will insert the multi column header in the hie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a92b2e64467c | unity_docs | rendering | Show me a Unity C# example demonstrating `GUI.color`. | ffect on UI labels when you use the light Unity theme. In the light theme, the default color for label text is black, which has an RGB value of 0. Multiplying any GUI.Color value by 0 yields 0, so the label text color does not change. In the dark theme, the default label text color is white, which has an RGB value of 1... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_da37df2e1d13 | unity_docs | editor | Explain 'Remove local asset packages' in Unity. | When you import
local asset packages
, the Unity Editor places them in the Assets directory in your project.
You can manually remove assets from a project if you know the assets aren’t in use. You might consider this action to unclutter your project directory or to free up space on your local hard drive.
Warning
: Make... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55696ba5bf48 | unity_docs | math | What is `Windows.Crypto.ComputeSHA1Hash` in Unity? Explain its purpose and usage. | Crypto.ComputeSHA1Hash
Declaration
public static byte[]
ComputeSHA1Hash
(byte[]
buffer
);
Parameters
Parameter
Description
buffer
The input to compute the hash code for.
Description
Computes SHA1 hash value for the specified byte array. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b1c6ce3c08e3 | unity_docs | rendering | Explain 'Troubleshoot the SRP Batcher in URP' in Unity. | You can check the status of SRP batches in the
Frame Debugger
window. Each SRP Batch displays how many draw calls Unity used, which keywords Unity attached to the shader , and the reason why Unity didn’t batch that draw call with the previous one.
To check the status of SRP Batcher batches:
In the Editor, open the Fram... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eb79daa3d6ca | unity_docs | physics | Give me an overview of the `JointSpring` class in Unity. | JointSpring
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
JointSpring is used add a spring force to
HingeJoint
and
PhysicsMaterial
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
HingeJoint hinge = GetComponent<HingeJoint>(); // Make the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c13463c0845a_doc_4 | github | scripting | What does `Destroy` do in this Unity script? Explain its purpose and signature. | Destroys all memory/references associated with the instance
Signature:
```csharp
public static void Destroy()
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_f56006a02926 | unity_docs | scripting | What is `HDROutputSettings.paperWhiteNits` in Unity? Explain its purpose and usage. | HDROutputSettings.paperWhiteNits
public float
paperWhiteNits
;
Description
The base luminance of a white paper surface in nits or candela per square meter (cd/m2).
This value is used if
HDROutputSettings.automaticHDRTonemapping
is true. The higher this value, the brighter the resulting image appears on the HD... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9170ea86098 | unity_docs | networking | What is `Android.AndroidConfiguration.keyboard` in Unity? Explain its purpose and usage. | AndroidConfiguration.keyboard
public
Android.AndroidKeyboard
keyboard
;
Description
Mirrors the Android property
keyboard
.
For information about this property, refer to the Android developer documentation on
keyboard
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb2d8de709ed | unity_docs | scripting | What is `PrefabUtility.GetPrefabAssetType` in Unity? Explain its purpose and usage. | PrefabUtility.GetPrefabAssetType
Declaration
public static
PrefabAssetType
GetPrefabAssetType
(
Object
componentOrGameObject
);
Parameters
Parameter
Description
componentOrGameObject
An object that is part of a Prefab Asset or Prefab instance.
Returns
PrefabAssetType
The type of Prefab.
Description... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3fc186c84eea_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The type of trigger to use to spawn an object.
Signature:
```csharp
public SpawnTriggerType spawnTriggerType
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_463894353d95 | unity_docs | scripting | What is `ColorGamutUtility.GetColorPrimaries` in Unity? Explain its purpose and usage. | ColorGamutUtility.GetColorPrimaries
Declaration
public static
ColorPrimaries
GetColorPrimaries
(
ColorGamut
gamut
);
Parameters
Parameter
Description
gamut
The color gamut to look up.
Returns
ColorPrimaries
Color primaries for the given gamut.
Description
Returns the color primaries mapped to the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b700916c2cb | unity_docs | physics | What is `Physics2D.ClosestPoint` in Unity? Explain its purpose and usage. | Physics2D.ClosestPoint
Declaration
public static
Vector2
ClosestPoint
(
Vector2
position
,
Collider2D
collider
);
Parameters
Parameter
Description
position
The position from which to find the closest point on the specified
Collider
.
Collider
The Collider on which to find the closest specified
posi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3cebd9294b51 | unity_docs | scripting | Explain 'Move static colliders to prevent performance issues' in Unity. | Properly manage static colliders when they move to avoid performance issues.
A
Static collider
is a GameObject with a Collider component but no Rigidbody or ArticulationBody component attached. You can use static colliders for objects that don’t move during gameplay, such as terrain , buildings, or other environmental ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2bac81d86c24 | unity_docs | rendering | What is `ParticleSystem.startDelay` in Unity? Explain its purpose and usage. | Method group is Obsolete
ParticleSystem.startDelay
Obsolete
startDelay property is deprecated. Use main.startDelay or main.startDelayMultiplier instead.
public float
startDelay
;
Description
Start delay in seconds.
Use this to delay when playback starts on the system. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3619a2f53add_doc_4 | github | scripting | What does `GetColor` do in this Unity script? Explain its purpose and signature. | Get the color of a position on a GridGrid to get color fromPosition of the Grid to get color fromColor of a position on a Grid
Signature:
```csharp
public Color GetColor(Grid grid, Vector3Int position)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_accb0aa9b98a | unity_docs | rendering | In Unity's 'Lighting configuration workflow', what is 'Configure lighting' and how does it work? | Choose baked GI, realtime GI, mixed baked and realtime GI, or opt for no GI.
For more information, refer to
Lighting Settings Asset Inspector window reference
Choose one of the following Lighting Modes:
Baked Indirect Subtractive Shadowmask
Distance Shadowmask
For more information, refer to
Lighting Mode
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65e26aba204b | unity_docs | scripting | Show me a Unity C# example demonstrating `SceneManagement.Scene.buildIndex`. | ings
, Unity gives it a
buildIndex
of 5.
A
Scene
that is not added to the
Scenes in Build
window returns a
buildIndex
one more than the highest in the list. For example, if you don’t add a
Scene
to a
Scenes in Build
window that already has 6 Scenes in it, then
Scene.buildIndex
returns 6 as its index .
If ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ed21948a9b64 | unity_docs | editor | What are the parameters of `AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName` in Unity? | Description Get the Asset paths for all Assets tagged with assetBundleName and
named assetName. Get the Asset paths for all Assets tagged with assetBundleName and named
assetName, regardless of extension or path e.g. "Assets/House.prefab",
"Assets/Textures/House.p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_77a29d5da5c6 | unity_docs | rendering | What are the parameters of `GUILayout.BeginHorizontal` in Unity? | Description Begin a Horizontal control group. All controls rendered inside this element will be placed horizontally next to each other. The group must be closed with a call to EndHorizontal. Horizontal Layout. ```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
// Sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e0011926ec68 | unity_docs | physics | What is `ColliderHit` in Unity? Explain its purpose and usage. | ColliderHit
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Struct used to retrieve information from an Overlap batch query.
Additional resources:
OverlapBoxCommand
,
OverlapCapsuleCommand
,
OverlapSphereCommand
.
Properties
Property
Description
collider
The Collider that wa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36896634614f | unity_docs | scripting | What is `GL.Flush` in Unity? Explain its purpose and usage. | GL.Flush
Declaration
public static void
Flush
();
Description
Sends queued-up commands in the driver's command buffer to the GPU.
When Direct3D 11 is the active graphics API, this call maps to ID3D11DeviceContext::Flush.
When Direct3D 12 is the active graphics API, pending command lists are executed.
When OpenG... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cbeeb71a833 | unity_docs | scripting | What is `Search.IPropertyDatabaseView.Invalidate` in Unity? Explain its purpose and usage. | IPropertyDatabaseView.Invalidate
Declaration
public void
Invalidate
(InAttribute)
recordKey
);
Parameters
Parameter
Description
recordKey
A record key.
Description
Invalidates a single property record so it is no longer retrievable.
```
using (var view = propertyDatabase.GetView())
{
// Store a property.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba0e98b27628 | unity_docs | scripting | What is `UIElements.UQueryState_1.ToList` in Unity? Explain its purpose and usage. | UQueryState<T0>.ToList
Declaration
public void
ToList
(List<T>
results
);
Parameters
Parameter
Description
results
Adds all elements satisfying selection rules to the list.
Description
Adds all elements satisfying selection rules to the list.
Declaration
public List<T>
ToList
();
Returns
List<T>
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70518f8b1ee3 | unity_docs | scripting | What is `UIElements.UxmlElementAttribute.libraryPath` in Unity? Explain its purpose and usage. | UxmlElementAttribute.libraryPath
public string
libraryPath
;
Description
Custom path to use when displaying the element in the UI Builder Library.
Sub-paths can be created by using a forward slash (/).
If no value is provided, the element namespace will be used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_30bb3686b34e | unity_docs | rendering | In Unity's 'ShaderLab: legacy alpha testing', what is 'Syntax' and how does it work? | ```
AlphaTest Off
```
Render all pixels (default) or…
```
AlphaTest comparison AlphaValue
```
Set up the alpha test to only render pixels whose alpha value is within a certain range. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9799ba1f7a85 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.Provider.ChangeSets`. | Provider.ChangeSets
Declaration
public static
VersionControl.Task
ChangeSets
();
Description
Gets a list of pending changesets owned by the current user.
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;public class EditorScript : MonoBehaviour... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08bfe212376c | unity_docs | rendering | What is `Experimental.Playables.TextureMixerPlayable` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
TextureMixerPlayable
struct in
UnityEngine.Experimental.Playables
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
IPlayable
Description
An implementation of
IPlayable
that allows mixing two textures.
NOTE:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c0425c5240e | unity_docs | rendering | What is `TextureImporter.mipMapBias` in Unity? Explain its purpose and usage. | TextureImporter.mipMapBias
public float
mipMapBias
;
Description
Mip map bias of the texture.
The default value of
TextureImporter.mipMapBias
is -100, to mark the property as invalid. If the property is changed by the user, the new value is applied to the texture during import.
Additional resources:
Texture... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9bcfd3569b45 | unity_docs | ui | What is `GUIStyle.padding` in Unity? Explain its purpose and usage. | GUIStyle.padding
public
RectOffset
padding
;
Description
Space from the edge of
GUIStyle
to the start of the contents.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Prints the left, right, top and down values of the GUIStyle overflow RectOffset rctOff; void OnGUI()
{
rctOff = GUI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_77bd246bb92a | unity_docs | scripting | What is `UIElements.EventInterestAttribute.ctor` in Unity? Explain its purpose and usage. | EventInterestAttribute Constructor
Declaration
public
EventInterestAttribute
(params Type[]
eventTypes
);
Parameters
Parameter
Description
eventTypes
The affected method is guaranteed to be invoked if the incoming event has any of the specified types
in this argument.
Description
Use this constructor ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_db69a2ccdd92 | unity_docs | rendering | In Unity's 'Set a shader to require a package', what is 'Example' and how does it work? | The following shader compiles only if the project has the
com.my.package
package installed with a version of 2.2 or higher. The shader pass compiles only if the project has both the Universal
Render Pipeline
package with a version between 16.2.1 and 17.0, and the TextMesh Pro package with a version of 3.2 or higher.
``... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e412dc220d16 | unity_docs | physics | What is `Search.Dispatcher` in Unity? Explain its purpose and usage. | Dispatcher
class in
UnityEditor.Search
Description
The search dispatcher is used to synchronize events from the search provider threads and the main UI threads.
Static Methods
Method
Description
CallDelayed
Register a callback to be executed later in the main thread.
Enqueue
This function can be used in a thr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e426554ba2a2 | unity_docs | ui | In Unity's 'Reuse UXML files', what is 'Override an attribute' and how does it work? | You can override attributes with the UXML tag. To override an attribute, specify the following:
The
element-name
attribute of the element whose attributes you want to override
The name of the attribute to override
The new attribute value
For example, if you want to display the same set of information for each player in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69b30d355bc1 | unity_docs | scripting | What is `PrimitiveType.Quad` in Unity? Explain its purpose and usage. | PrimitiveType.Quad
Description
A quad primitive.
Additional resources:
GameObject.CreatePrimitive
.
```csharp
using UnityEngine;
using System.Collections;// Creates a quad primitivepublic class ExampleClass : MonoBehaviour
{
void Start()
{
GameObject quad = GameObject.CreatePrimitive(PrimitiveType.Quad);
}
}
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8d0cb3356c38_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Serialize list to JSON
Signature:
```csharp
public static string ListToJson<T>(List<T> list, bool prettyPrint = false)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_7f18fdc0261d | unity_docs | scripting | What is `AndroidJNI.GetIntField` in Unity? Explain its purpose and usage. | AndroidJNI.GetIntField
Declaration
public static int
GetIntField
(IntPtr
obj
,
IntPtr
fieldID
);
Description
Returns the value of an instance (nonstatic) field of an object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b2e47ae9f331 | unity_docs | rendering | Explain 'Applying 2D billboards for low LOD meshes' in Unity. | Billboards are a level-of-detail (LOD) method for drawing complicated 3D Meshes in a simpler way when they are far away from the
Camera
. When a Mesh is far away from the Camera, its size on screen means there is no need to draw it in full detail. Instead, you can replace the complex 3D Mesh with a 2D billboard represe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4427805634f1_doc_5 | github | scripting | What does `CommitSamples` do in this Unity script? Explain its purpose and signature. | This recorder does not support committing audio samples.
Signature:
```csharp
public void CommitSamples (float[] sampleBuffer = default, long timestamp = default)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_c5c78845e447 | unity_docs | scripting | Explain 'Set the application entry point for your Android application' in Unity. | You control the application entry points through
Android Player Settings
. You can set multiple application entry points for
development builds
of your application which helps you to quickly compare functionality and performance between different application entry points. However, you must only select one application e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56b5377df78a | unity_docs | ui | Show me a Unity C# example demonstrating `GUI.VerticalSlider`. | ng the dragging area. If left out, the
horizontalSlider
style from the current
GUISkin
is used.
thumb
The
GUIStyle
to use for displaying draggable thumb. If left out, the
horizontalSliderThumb
style from the current
GUISkin
is used.
Returns
float
The value that has been set by the user.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_24e41f0fd097 | unity_docs | rendering | In Unity's 'Upgrade to Unity 2021 LTS', what is 'Page Outline' and how does it work? | Render pipelines
Device Simulator
Environment Lighting
Environment lighting: Ambient probe and skybox reflection probe are now automatically baked
Enable Code Coverage preference
Particle System Force Fields
Particle System Start Delay + Rate over Distance emission
BuildReport - PackedAssets
Terrain APIs out of experim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b73529e2877 | unity_docs | animation | What is `Animations.RotationConstraint.rotationAxis` in Unity? Explain its purpose and usage. | RotationConstraint.rotationAxis
public
Animations.Axis
rotationAxis
;
Description
The axes affected by the RotationConstraint.
Use this property to restrict the effect of the constraint on a particular axis.
```csharp
using UnityEngine.Animations;public class ConstraintAxis
{
public void ConstrainOnlyOnXY(R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb447676c52b | unity_docs | scripting | What is `Pool.GenericPool_1.Get` in Unity? Explain its purpose and usage. | GenericPool<T0>.Get
Declaration
public static T
Get
();
Returns
T
A pooled object or a new instance if the pool is empty.
Description
Get an instance from the pool. If the pool is empty then a new instance will be created.
Declaration
public static PooledObject<T>
Get
(out T
value
);
Parameters
Para... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20e72b29c912 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.CanPasteSerializedDataDelegate` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.CanPasteSerializedDataDelegate
Declaration
public delegate bool
CanPasteSerializedDataDelegate
(string
data
);
Parameters
Parameter
Description
data
Serialized graph element.
Description
Delegate for checking ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c6f9e663e6d | unity_docs | physics | What is `LowLevelPhysics.GeometryHolder.As` in Unity? Explain its purpose and usage. | GeometryHolder.As
Declaration
public T
As
();
Returns
T
Returns the basic geometric shape which is stored in the GeometryHolder.
Description
Return the specified geometric shape stored inside this Geometry Holder object.
This function throws an InvalidOperationException if you try to request a geometric s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_726b8fa8e822 | unity_docs | physics | Show me a Unity C# example demonstrating `UIElements.CustomBinding`. | CustomBinding
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.Binding
/
Implemented in:
UnityEngine.UIElementsModule
Description
Base class for general purpose binding extensibility.
The following example creates a custom binding that displays the current time.
You can bind it to the text fie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8046c09e8e2d | unity_docs | networking | What is `Android.AndroidConfiguration.densityDpi` in Unity? Explain its purpose and usage. | AndroidConfiguration.densityDpi
public int
densityDpi
;
Description
Mirrors the Android property
densityDpi
.
For information about this property, refer to the Android developer documentation on
densityDpi
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f24bc277a60d | unity_docs | scripting | What is `ModelImporter.fileScale` in Unity? Explain its purpose and usage. | ModelImporter.fileScale
public float
fileScale
;
Description
Scaling factor used when useFileScale is set to true (Read-only).
The scaling factor is based on the source of the model. For FBX files, the scaling factor is the multiplier that converts the unit of measurement, of the imported FBX file, to meters. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_acc3f7a6cc68 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchViewFlags.DisableInspectorPreview`. | SearchViewFlags.DisableInspectorPreview
Description
This flag disables the use of the Inspector Preview in the Search Picker window.
This flag is not set by default. When it is set, the Search Picker window will not show any panel or button related to the Inspector Preview. The flag
OpenInspectorPreview
will not ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12b044bbed77 | unity_docs | scripting | What is `Experimental.GraphView.Placemat.Collapsed` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Placemat.Collapsed
public bool
Collapsed
;
Description
Whether the placemat is collapsed (true) or expanded (false). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_923724370e3c | unity_docs | editor | What are the parameters of `ObjectFactory.PlaceGameObject` in Unity? | Description Place the given GameObject in the Scene View using the same preferences as built-in Unity GameObjects. Use this method to create GameObjects centered in the Scene View or at world origin, depending on user preference. This method also ensures that the GameObject has a unique name, also as defined by prefere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad8969c0e6e5 | unity_docs | math | What is `Tilemaps.Tilemap.GetTilesBlock` in Unity? Explain its purpose and usage. | Tilemap.GetTilesBlock
Declaration
public TileBase[]
GetTilesBlock
(
BoundsInt
bounds
);
Parameters
Parameter
Description
bounds
The bounds to retrieve from.
Returns
TileBase[]
The array of
Tile
s at the given bounds.
Description
Retrieves an array of Tiles with the given bounds.
This is meant for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e1ab24fe84ec | unity_docs | rendering | In Unity's 'New in Unity 6.0 Preview', what is 'Entities' and how does it work? | Added serialization support for
UnityObjectRef<>
to enable unmanaged references to Unity assets. For example, instead of a Texture on a managed IComponentData, you can have a
UnityObjectRef<Texture>
on an unmanaged
IComponentData
.
The Create menu adds the following Type templates:
IComponentData ISystem IJobEntity Bak... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9b3c9d9836e5 | github | scripting | Write a Unity C# script called Test Lazy Factory | ```csharp
using NUnit.Framework;
using UnityEngine;
namespace SiegfriedWagner.Singletons.Tests.Runtime
{
public class TestLazyFactory
{
[Test]
public void TestMultipleCallsToSameUninstancedLazySingleton()
{
var lazyInstance = LazySingleton.GetInstance();
var laz... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_393382c33d98 | unity_docs | rendering | Explain 'Writing custom shaders in the Built-In Render Pipeline' in Unity. | Resources for writing HLSL code and Surface Shaders in the Built-In
Render Pipeline
.
Page Description Writing Surface Shaders
Resources and techniques for writing
Surface Shaders
in the Built-In Render Pipeline, which are streamlined shaders that interact with lighting.
Shader methods in the Built-In Render Pipeline
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_286b8715fa55 | unity_docs | physics | What is `SpherecastCommand.queryParameters` in Unity? Explain its purpose and usage. | SpherecastCommand.queryParameters
public
QueryParameters
queryParameters
;
Description
Structure for specifying additional parameters for a batch query such as layer mask, hit triggers and hit backfaces. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce0709aa8e57 | unity_docs | rendering | What is `Video.VideoRenderMode` in Unity? Explain its purpose and usage. | VideoRenderMode
enumeration
Description
Type of destination for the images read by a VideoPlayer.
Set this enumeration to determine where and how the VideoPlayer renders the images of a video clip.
```csharp
// This script switches between the render modes when you press the Spacebar.
// To set up your project f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cebc3d975c58 | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.AndroidManifestFile` in Unity? Explain its purpose and usage. | AndroidManifestFile
class in
Unity.Android.Gradle.Manifest
/
Implemented in:
Unity.Android.Gradle
Description
A definition of Android Manifest file. Contains XML prolog and root Manifest element.
Properties
Property
Description
Manifest
Root <manifest> element.
Xml
Prolog element <xml>.
Constructors
Const... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f41d2f46cbdb | unity_docs | physics | Show me a Unity code example for 'Build a player from the command line'. | ptions.target
Additionally, platform-specific
conditional compilation
varies based on the current target. The assemblies that Unity loads can also differ depending on the target platform. These differences can influence the build output and lead to issues that are hard to diagnose.
## Example: Build with a custom scri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5109a05c534 | unity_docs | physics | What is `ContactFilter2D.NoFilter` in Unity? Explain its purpose and usage. | ContactFilter2D.NoFilter
Declaration
public
ContactFilter2D
NoFilter
();
Returns
ContactFilter2D
A copy of the contact filter set to not filter any
ContactPoint2D
.
Description
Sets the contact filter to not filter any
ContactPoint2D
.
When you are using a function that requires a
ContactFilter2D
, b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_27e8c9e5dfff_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Abstract class to be inherited by MonoBehaviour-based poolable objects.Implements the IPoolable interface, providing the core lifecycle methods for poolable objects.
Signature:
```csharp
public abstract class MonoPoolable : MonoBehaviour, IPoolable
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_c1543fa4acb5 | unity_docs | editor | What is `EditorGUILayout.Popup` in Unity? Explain its purpose and usage. | EditorGUILayout.Popup
Declaration
public static int
Popup
(int
selectedIndex
,
string[]
displayedOptions
,
params GUILayoutOption[]
options
);
Declaration
public static int
Popup
(int
selectedIndex
,
string[]
displayedOptions
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_572887adcdea | unity_docs | rendering | In Unity's 'Transparent Parallax Specular', what is 'Transparent Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader can make mesh geometry partially or fully transparent by reading the alpha channel of the main texture. In the alpha, 0 (black) is completely transparent while 255 (white) is completely opaque. If your main texture does not have an alp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fd52fb23a5b | unity_docs | rendering | Show me a Unity C# example demonstrating `BuildOptions.DetailedBuildReport`. | detailed information in the
BuildReport
.
The BuildReport object returned by
BuildPipeline.BuildPlayer
will contain additional data about build times and contents. This might lead to slightly longer build time, typically by a few percents.
The following script example illustrates how to use
DetailedBuildReport
wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d246b06d355 | unity_docs | editor | What is `EditorGUILayout.BeginBuildTargetSelectionGrouping` in Unity? Explain its purpose and usage. | EditorGUILayout.BeginBuildTargetSelectionGrouping
Declaration
public static
BuildTargetGroup
BeginBuildTargetSelectionGrouping
();
Description
Begin a build target grouping and get the selected BuildTargetGroup back.
Build Target Selection Group
```csharp
using UnityEditor;public class BuildTargetGroupExampl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94545fbad6be | unity_docs | scripting | What is `RectInt.zero` in Unity? Explain its purpose and usage. | RectInt.zero
public static
RectInt
zero
;
Description
Shorthand for writing
new RectInt(0,0,0,0)
.
Additional resources:
RectInt
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
RectInt initialBox = RectInt.zero;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2c1aed05089 | unity_docs | networking | What is `Android.AndroidTouchScreen` in Unity? Explain its purpose and usage. | AndroidTouchScreen
enumeration
Description
Options to indicate whether the device supports touchscreen.
Additional resources:
AndroidConfiguration.touchScreen
Properties
Property
Description
Undefined
Mirrors the Android property value TOUCHSCREEN_UNDEFINED.
NoTouch
Mirrors the Android property value TOUCHSC... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f61ce556c52 | unity_docs | rendering | What is `Rendering.CullingResults.lightIndexCount` in Unity? Explain its purpose and usage. | CullingResults.lightIndexCount
public int
lightIndexCount
;
Returns
int
The number of per-object light indices.
Description
Gets the number of per-object light indices.
Additional resources:
FillLightAndReflectionProbeIndices
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13965e59393d | unity_docs | rendering | Give me an overview of the `TextureCompressionQuality` class in Unity. | TextureCompressionQuality
enumeration
Description
Compression Quality.
Corresponds to the settings in a
texture inspector
.
Properties
Property
Description
Fast
Fast compression.
Normal
Normal compression (default).
Best
Best compression. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5468f24e9951 | unity_docs | editor | What is `UIElements.UxmlSerializedDataCreator` in Unity? Explain its purpose and usage. | UxmlSerializedDataCreator
class in
UnityEditor.UIElements
Description
Editor utility methods for dealing with UxmlSerializedData.
Static Methods
Method
Description
CreateUxmlSerializedData
Creates a UxmlSerializedData instance for the given type with default values applied. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c292e80dd9f2_doc_1 | github | scripting | What does `CreateScripts` do in this Unity script? Explain its purpose and signature. | Create scripts using
Signature:
```csharp
public abstract void CreateScripts(T scriptTemplate, bool refresh = true, params Type[] inputTypes);
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_6566a265160f | unity_docs | math | Show me a Unity C# example demonstrating `LightProbes.bakedProbes`. | LightProbes.bakedProbes
public SphericalHarmonicsL2[]
bakedProbes
;
Description
Coefficients of baked light probes.
Additional resources:
SphericalHarmonicsL2
.
```csharp
using UnityEngine;
using UnityEngine.Rendering;public class ExampleClass : MonoBehaviour
{
public Color m_Ambient;
public Light[] m_Light... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4183519e174 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetImporter.userData`. | AssetImporter.userData
public string
userData
;
Description
Get or set any user data.
This can be useful during asset post processing if you want to associate
eg. a model with an auxillary xml file to control some parts of the importing or you
can put your xml data directly in to the userData field.
```cshar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6cc53db63f87 | unity_docs | xr | What is `Device.Application.RequestUserAuthorization` in Unity? Explain its purpose and usage. | Application.RequestUserAuthorization
Declaration
public static
AsyncOperation
RequestUserAuthorization
(
UserAuthorization
mode
);
Description
This has the same functionality as
Application.RequestUserAuthorization
. At the moment, the Device Simulator doesn't support simulation of this method. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62630c5180a1 | unity_docs | rendering | What is `TextureImporterSettings.swizzleG` in Unity? Explain its purpose and usage. | TextureImporterSettings.swizzleG
public
TextureImporterSwizzle
swizzleG
;
Description
Specifies the source for the texture's green color channel data.
By default, values for the imported texture's green channel come from the source image's green channel. To reorder or invert color channels at import time, cha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_23a27a8a0131 | unity_docs | scripting | Explain 'ToolbarMenu' in Unity. | A ToolbarMenu is an
Editor-only
control that serves as a menu. It has a predefined style that matches the Toolbar style.
## Create a ToolbarMenu
You can create a ToolbarMenu with UI Builder, UXML, or C#. The following C# example creates a ToolbarMenu with three menu items:
```csharp
using UnityEditor.UIElements;
...
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbfb6b255b2f | unity_docs | physics | What is `Physics.SphereCast` in Unity? Explain its purpose and usage. | Physics.SphereCast
Declaration
public static bool
SphereCast
(
Vector3
origin
,
float
radius
,
Vector3
direction
,
out
RaycastHit
hitInfo
,
float
maxDistance
= Mathf.Infinity,
int
layerMask
= DefaultRaycastLayers,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTriggerInteraction.UseGlobal);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_247aa37891ee | unity_docs | rendering | Explain 'Avoiding asset duplication' in Unity. | Asset duplication happens when Unity recursively follows
direct references
to make sure that all required objects are included in the build. Assets and scenes aren’t shared between different builds, so the same content might be duplicated both in the Player build and a content-only build that you make using AssetBundle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dafa0ea5f468 | unity_docs | physics | In Unity's 'Introduction to 2D', what is '2D physics' and how does it work? | Unity has a separate physics system to handle 2D physics so you can make use of optimizations only available with 2D. The components correspond to the standard 3D physics components such as Rigidbody ,
Box Collider
, and
Hinge Joint
, but with
2D
appended to the name. Therefore, you can equip sprites with
Rigidbody 2D
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7895bd37882a | unity_docs | rendering | What is `TextureImporter.isReadable` in Unity? Explain its purpose and usage. | TextureImporter.isReadable
public bool
isReadable
;
Description
Whether Unity stores an additional copy of the imported texture's pixel data in CPU-addressable memory.
By default, this is
false
. Set this to
true
only if you want to use the texture with methods that read, write, and manipulate the pixel dat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_786e95d23bb6 | unity_docs | scripting | What are the parameters of `PhysicsScene2D.Simulate` in Unity? | Returns bool Whether the simulation was run or not. Running the simulation during physics callbacks will always fail. Description Simulate physics associated with this PhysicsScene . Calling PhysicsScene2D.Simulate will perform a single simulation step, simulating physics over the specified step time. By default, All ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6e7d0a66ad3 | unity_docs | input | What is `Compass.enabled` in Unity? Explain its purpose and usage. | Compass.enabled
public bool
enabled
;
Description
Use to enable or disable compass. Note, that if you want
Input.compass.trueHeading
property to contain a valid value, you must also enable location updates. To do this, call
Input.location.Start()
.
Note
: On the web platform, the compass is available only wit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ee83198b246c | unity_docs | scripting | In Unity's 'Execute Static API methods', what is 'Query syntax' and how does it work? | Provider token:
api:
Query example: Searches for methods in the Application class, which provides access to application runtime data.
```
api:Application
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3b72cad3203 | unity_docs | math | What is `AndroidJavaObject.CallStatic` in Unity? Explain its purpose and usage. | AndroidJavaObject.CallStatic
Declaration
public void
CallStatic
(string
methodName
,
params object[]
args
);
Declaration
public void
CallStatic
(string
methodName
,
T[]
args
);
Parameters
Parameter
Description
methodName
Specifies which method to call.
args
An array of parameters passed to the metho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1a7b123bec3 | unity_docs | editor | What is `TerrainLayerUtility.ShowTerrainLayerGUI` in Unity? Explain its purpose and usage. | TerrainLayerUtility.ShowTerrainLayerGUI
Declaration
public static void
ShowTerrainLayerGUI
(
Terrain
terrain
,
TerrainLayer
terrainLayer
,
ref
Editor
terrainLayerEditor
,
ITerrainLayerCustomUI
customGUI
);
Parameters
Parameter
Description
terrain
The Terrain from which the Terrain Layer originates.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abb57056912c | unity_docs | editor | What is `Search.SearchIndexer.resolveDocumentHandler` in Unity? Explain its purpose and usage. | SearchIndexer.resolveDocumentHandler
public Func<string,string>
resolveDocumentHandler
;
Description
Handler used to resolve a document ID to some other data string.
```csharp
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
/// <summary>
/// Since the search indexes only cont... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_357ffbe820a6 | unity_docs | scripting | What is `Unity.Android.Gradle.BaseGradleFile` in Unity? Explain its purpose and usage. | BaseGradleFile
class in
Unity.Android.Gradle
/
Inherits from:
Unity.Android.Gradle.BaseBlock
Description
Base abstract class for all gradle files. This class does not provide any public methods.
Inherited Members
Public Methods Method Description
AddElement
Adds a new element as a child.
Clear
Clears the con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f111aefcacf | unity_docs | physics | What is `Cloth.enableContinuousCollision` in Unity? Explain its purpose and usage. | Cloth.enableContinuousCollision
public bool
enableContinuousCollision
;
Description
Enable continuous collision to improve collision stability.
Continuous collision is around 2x more computationally expensive than discrete collision, but it is necessary to detect collision between fast moving objects. Continuo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_42c3601b4ed9 | github | scripting | Write a Unity C# script called I Prefab Pool | ```csharp
using System.Collections.Generic;
using UnityEngine;
namespace Gilzoide.PrefabPool
{
public interface IPrefabPool
{
int CountAll { get; }
int CountActive { get; }
int CountInactive { get; }
IReadOnlyCollection<Object> ActiveInstances { get; }
IReadOnlyCollecti... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_422af36eae40 | unity_docs | animation | What is `AnimationClip.localBounds` in Unity? Explain its purpose and usage. | AnimationClip.localBounds
public
Bounds
localBounds
;
Description
AABB of this Animation Clip in local space of Animation component that it is attached too.
It is precomputed on import for imported models/animations based on the meshes that this animation clip affects.
This bounding box is specific to the me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e823ffcd077 | unity_docs | scripting | What is `UIElements.StyleBackgroundPosition` in Unity? Explain its purpose and usage. | StyleBackgroundPosition
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Implements interfaces:
IStyleValue<T0>
Description
Represents a style value that can be either a
BackgroundPosition
or a
StyleKeyword
.
Properties
Property
Description
keyword
The style keyword.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.