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_3a599abf73b2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Animator.SetIKPosition`. | he current position and rotation obtained from the animation).
This function sets the position of the ultimate goal in world space; the actual point in space where the body part ends up is also influenced by a weight parameter that specifies how far between the start and the goal the IK should aim (a value in the range... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06983b63b9c8 | unity_docs | editor | Show me a Unity C# example demonstrating `Networking.PlayerConnection.PlayerConnectionGUI.ConnectionTargetSelectionDropdown`. | need to provide the state of the connection used for your
EditorWindow
. To get one, use
PlayerConnectionGUIUtility.GetConnectionState
in OnEnable and remember to dispose of the state in OnDisable of the
EditorWindow
you're using it in.
This class currently only works for the connection that the Profiling tools an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdfd357b4d68 | unity_docs | physics | What is `LowLevelPhysics.ImmediateContact` in Unity? Explain its purpose and usage. | ImmediateContact
struct in
UnityEngine.LowLevelPhysics
/
Implemented in:
UnityEngine.PhysicsModule
Description
Describes a contact where two shapes collide.
These contact points are generated by the
ImmediatePhysics.GenerateContacts
function.
Properties
Property
Description
Normal
The normal of the contac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11162fb29c50 | unity_docs | scripting | What is `QualitySettings.GetRenderPipelineAssetAt` in Unity? Explain its purpose and usage. | QualitySettings.GetRenderPipelineAssetAt
Declaration
public static
Rendering.RenderPipelineAsset
GetRenderPipelineAssetAt
(int
index
);
Parameters
Parameter
Description
index
Index of the quality level.
Returns
RenderPipelineAsset
Returns
null
if the quality level does not exist, or if no asset is a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bc219ab0d29a | github | scripting | Write a Unity C# MonoBehaviour script called Teleport | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace VrBlocks
{
public class Teleport : MonoBehaviour
{
public float FadeTime { get; set; } = 0.3f;
public float FadedTime { get; set; } = 0.15f;
public float UnfadeTime { get; set; } = 0.3f;
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_2731b0641d36 | unity_docs | physics | Show me a Unity C# example demonstrating `Hash128`. | ces of data are identical,
then the data is identical too. For example, to quickly determine whether texture pixel contents have changed, or
if they are identical between several textures, you can use
Texture.imageContentsHash
.
To compute the hash values for some data, use the
Hash128.Compute
function. To compute t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e60f304456f9 | unity_docs | scripting | What is `U2D.SpriteDataAccessExtensions.SetBones` in Unity? Explain its purpose and usage. | SpriteDataAccessExtensions.SetBones
Declaration
public static void
SetBones
(
Sprite
sprite
,
SpriteBone[]
src
);
Description
Sets the SpriteBones for this Sprite.
This is usually called as part of the Sprite's post process to imbue it with bind pose data. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b335a25b087c | unity_docs | scripting | What is `Experimental.GraphView.Scope.containedElementsRect` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Scope.containedElementsRect
public
Rect
containedElementsRect
;
Description
The rect containing the GraphElements encompassed by the Scope. The rect is expressed in local coordinates. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c99a1710b93b | unity_docs | animation | What is `Playables.Playable` in Unity? Explain its purpose and usage. | Playable
struct in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
IPlayable
Description
Playables are customizable runtime objects that can be connected together and are contained in a
PlayableGraph
to create complex behaviours.
Playables can be used to create complex a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7bfb7133031 | unity_docs | networking | What is `XR.XRMirrorViewBlitModeDesc.blitMode` in Unity? Explain its purpose and usage. | XRMirrorViewBlitModeDesc.blitMode
public int
blitMode
;
Description
Mirror view blit mode Id. For details, see
XRMirrorViewBlitMode
. In case of provider's custom blit mode, the value wouldn't be the reserved XRMirrorViewBlitMode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7d7a7dcf7c38 | unity_docs | physics | In Unity's 'Troubleshoot D3D12 GPU crashes on Windows', what is 'Types of crashes' and how does it work? | There are a number of errors that you might encounter that are referred to as GPU crashes when developing in Unity:
GPU timeout
: When a graphics command takes too long to execute the operation, Windows will time out the operation and reset the graphics driver, causing a crash. For example:
An infinite loop in a shader... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4cfaea231b4 | unity_docs | scripting | What is `LayerMask.operator_int` in Unity? Explain its purpose and usage. | LayerMask.LayerMask
Description
Implicitly converts an integer to a LayerMask.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Converts an int to a layer mask and prints all the layer names.
// As the value is 3, it will print "Default" and "TransparentFX".
// 2^0 + 2^1 = 1... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b59c3b76c8a2 | unity_docs | editor | What is `EditorWindow.overlayCanvas` in Unity? Explain its purpose and usage. | EditorWindow.overlayCanvas
public
Overlays.OverlayCanvas
overlayCanvas
;
Description
The
OverlayCanvas
for this window.
Note that while every
EditorWindow
contains an
OverlayCanvas
, windows must opt in to display Overlays. See UnityEditor.Overlays.ISupportsOverlays for more information. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bdbbe105f0e8 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.MoveAssetToTrash`. | eturns
bool
Returns true if the asset has been successfully removed, false if it doesn't exist or couldn't be removed.
Description
Moves the specified asset or folder to the OS trash.
Paths should be relative to the project folder, for example: "Assets/MyTextures/hello.png"
Additional resources:
AssetDatabase.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_559bff3bc2bf | unity_docs | editor | Explain 'Thread Local Storage stack allocator example' in Unity. | ## TLS stack allocator usage reports
If a thread’s stack allocator is full, allocations fall back to the
threadsafe linear allocator
. A few overflow allocations are fine: 1 to 10 in a frame, or a few hundred during load. However, if the numbers grow every frame, you can increase the block sizes.
To increase the block... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cd50b760e61 | unity_docs | math | What is `Experimental.GraphView.Attacher.offset` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Attacher.offset
public
Vector2
offset
;
Description
An absolute offset added to the element position after placement. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_116d8f455804 | unity_docs | xr | In Unity's 'AR feature set', what is 'Getting started' and how does it work? | Unity’s AR feature set pre-installs the correct packages needed for AR development for the following AR platforms and devices:
Google ARCore
Apple ARKit
HoloLens via OpenXR
Magic Leap 2
For more information on how to start developing applications for these platforms in Unity, refer to the documentation in the previous ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44070e25e813 | unity_docs | editor | What is `iOS.Xcode.PBXProject.ctor` in Unity? Explain its purpose and usage. | PBXProject Constructor
Declaration
public
PBXProject
();
Description
Creates a new instance of PBXProject class.
```csharp
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Samp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_320f8648a167 | unity_docs | physics | What is `IMGUI.Controls.TreeView.Reload` in Unity? Explain its purpose and usage. | TreeView.Reload
Declaration
public void
Reload
();
Description
Call this to force the TreeView to reload its data. This in turn causes BuildRoot and BuildRows to be called.
Additional resources:
BuildRoot
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fcaeea5efd4e | github | scripting | Write a Unity C# script called Lerp Vector3 | ```csharp
using Solid.Core;
using UnityEngine;
/*Copyright (c) Created by Oleksii Volovich 2021*/
namespace Solid.Examples
{
public sealed class LerpVector3 : Awaitable<Vector3>
{
[SerializeField] private AnimationCurve _curve = AnimationCurve.Linear(0, 0, 1, 1);
[SerializeField] private Vect... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_043abafef859 | unity_docs | scripting | What is `Unity.Properties.IVisitPropertyAdapter.Visit` in Unity? Explain its purpose and usage. | IVisitPropertyAdapter.Visit
Declaration
public void
Visit
(VisitContext<TContainer,TValue>
context
,
ref TContainer
container
,
ref TValue
value
);
Parameters
Parameter
Description
context
The context being visited.
container
The container being visited.
value
The value being visited.
Description
In... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c748ddcbb73f | unity_docs | editor | What are the parameters of `AssetDatabase.GetLabels` in Unity? | Returns string[] Returns all labels attached to a given asset. Description Obtains all labels of a given asset. ```csharp
using System.Linq;
using UnityEngine;
using UnityEditor;public class AssetDatabaseExamples : MonoBehaviour
{
[MenuItem("AssetDatabase/Check If Labels Are Correct")]
static void CheckIfLabels... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bf483610a2c4 | unity_docs | input | What is `Input.touches` in Unity? Explain its purpose and usage. | Input.touches
public static Touch[]
touches
;
Description
Returns list of objects representing status of all touches during last frame. (Read Only) (Allocates temporary variables).
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d6c876348fb | unity_docs | rendering | In Unity's 'Check how many shader variants you have', what is 'Get a list of shader variants Unity creates at build time' and how does it work? | After you build your project, open the
Editor.log
log file and search for
Compiling shader
to see which variants Unity compiles and strips. For example:
```
Compiling shader "Sprites/Default" pass "" (vp)
Full variant space: 8
After settings filtering: 8
After built-in stripping: 4
After scriptable stripping: 4
Pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d08d7dd25981 | unity_docs | editor | Show me a Unity C# example demonstrating `Menu.SetChecked`. | Menu.SetChecked
Declaration
public static void
SetChecked
(string
menuPath
,
bool
isChecked
);
Description
Sets the check status of a menu item.
The check status of a menu item is cleared when the Editor restarts.
```csharp
using UnityEditor;
using UnityEngine; public class CheckMenuTest: MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_286f229f2a71 | unity_docs | rendering | Explain 'ShaderLab: legacy vertex data channel mapping' in Unity. | The BindChannels command allows you to specify how vertex data maps to the graphics hardware. By default, Unity figures out the bindings for you, but in some cases you want custom ones to be used.
For example you could map the primary UV set to be used in the first texture stage and the secondary UV set to be used in t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e91dfcd70ae2 | unity_docs | editor | In Unity's 'Analyzing AssetBundles', what is 'WebExtract and binary2text' and how does it work? | WebExtract and binary2text are low-level command-line tools included with every Unity Editor installation.
WebExtract
: Extracts the files embedded within an AssetBundle, similar to unzipping an archive. It creates a folder (named after the AssetBundle) containing its internal files in the same directory as the AssetBu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e15e967a44f | unity_docs | scripting | What is `RefreshRate` in Unity? Explain its purpose and usage. | RefreshRate
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents the display refresh rate. This is how many frames the display can show per second.
Display refresh rate is always a rational number which is expressed as a fraction that contains a numerator and a denominator. For ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7356cfbe16e | unity_docs | physics | Give me an overview of the `PhysicsMaterial2D` class in Unity. | PhysicsMaterial2D
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.Physics2DModule
Description
Asset type that defines the surface properties of a
Collider2D
.
When two Colllider2D come into contact, the physics system uses both friction and bounciness if it needs to calculate a col... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8b191386f8a7 | unity_docs | input | In Unity's 'FloatField', what is 'Set a placeholder text' and how does it work? | You can set a placeholder text for the element. You can also hide the placeholder text on focus.
Note
: The placeholder text won’t display if you set a value for the element. To unset a value in UI Builder, right-click the Value field in the element’s Inspector tab and select
Unset
.
In C#, use the placeholder and the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8cffc9453ed | unity_docs | rendering | What is `SpeedTreeImporter.castShadows` in Unity? Explain its purpose and usage. | SpeedTreeImporter.castShadows
public bool[]
castShadows
;
Description
Gets and sets an array of booleans to enable shadow casting for each LOD.
Because shadow casting comes with an increased performance cost, you may want to only render shadows on the SpeedTree assets that are nearest to the player. You can us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b67203c115c | unity_docs | physics | What is `PhysicsMaterial2D.friction` in Unity? Explain its purpose and usage. | PhysicsMaterial2D.friction
public float
friction
;
Description
Coefficient of friction.
Friction is used to control how a collision response reduces velocity. A value of zero indicates no friction at all while higher values produce increasing friction.
Note:
Both Static and Dynamic friction are supported, and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c28a2568f6d5 | unity_docs | scripting | What is `Experimental.GraphView.StickyNote.OnStartResize` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNote.OnStartResize
Declaration
public void
OnStartResize
();
Description
Called when the [StickyNote] will be resized. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c8337df11f2 | unity_docs | scripting | What is `SpriteMask.backSortingLayerID` in Unity? Explain its purpose and usage. | SpriteMask.backSortingLayerID
public int
backSortingLayerID
;
Description
Unique ID of the sorting layer defining the end of the custom range.
Sprites sorted after this sorting layer will not be masked. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e2bc3cb94ec7 | unity_docs | scripting | Show me a Unity code example for 'Bind ListView to a list with runtime binding'. | lds that are bound to the enabled and name properties of each GameSwitch object.
You can find the completed files that this example creates in this
GitHub repository
.
## Create an object with a list
Create the data structure that holds your list items.
Create a Unity project with any template.
In your
Project window... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_85f3a65a2def | unity_docs | xr | In Unity's 'AR development in Unity', what is 'AR scene elements' and how does it work? | The following sections outline the
Required scene elements
to make AR work, and the
Optional scene elements
you can add to enable specific AR features. To learn more about how to configure an XR scene
Set up an XR scene
.
Note:
AR GameObjects appear in the create menu when you enable an
AR provider plug-in in XR
Plug-i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bc7b366057ff | unity_docs | xr | In Unity's 'Property bags', what is 'Generating property bags' and how does it work? | Unity uses one of the following methods to generate property bags for a type:
Reflection
: By default, Unity uses reflection to generate the property bag for a type. Reflection offers convenience and occurs lazily only once per type when a property bag hasn’t been registered yet.
Code generation
: To enhance performanc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_34eac9bb39f9 | unity_docs | rendering | In Unity's 'Materials tab', what is 'Naming' and how does it work? | Define a naming strategy for the materials.
Property Function By Base Texture Name
Use the name of the diffuse texture of the imported material to name the material. When you don’t assign a diffuse texture to the material, Unity uses the name of the imported material.
From Model’s Material
Use the name of the imported ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e263003ec3b | unity_docs | scripting | What is `ModelImporterNormalSmoothingSource.FromSmoothingGroups` in Unity? Explain its purpose and usage. | ModelImporterNormalSmoothingSource.FromSmoothingGroups
Description
Use smoothing groups to determine which edges are smooth and which are hard.
Additional resources:
ModelImporter.normalSmoothingSource
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_15e2e3dd3e83 | unity_docs | rendering | Explain 'Built-in packages' in Unity. | Built-in packages allow users to toggle Unity features on or off through the Package Manager. Enabling or disabling a package reduces the run-time build size. For example, most Projects don’t use the legacy
Particle System
.
When you remove a built-in package of this feature, Unity does not include the related code and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09237bfbb043 | unity_docs | rendering | What is `MaterialEditor.GetMaterialProperties` in Unity? Explain its purpose and usage. | MaterialEditor.GetMaterialProperties
Declaration
public static MaterialProperty[]
GetMaterialProperties
(Object[]
mats
);
Parameters
Parameter
Description
mats
The selected materials.
Returns
MaterialProperty[]
Returns the material properties.
Description
Get shader property information of the materi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c63bb2cdd246 | unity_docs | editor | What is `Device.SystemInfo.maxComputeBufferInputsHull` in Unity? Explain its purpose and usage. | SystemInfo.maxComputeBufferInputsHull
public static int
maxComputeBufferInputsHull
;
Description
This has the same functionality as
SystemInfo.maxComputeBufferInputsHull
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_072e11fe7457 | unity_docs | editor | What is `AssetDatabase.SetLabels` in Unity? Explain its purpose and usage. | AssetDatabase.SetLabels
Declaration
public static void
SetLabels
(
Object
obj
,
string[]
labels
);
Parameters
Parameter
Description
obj
The asset object.
labels
An array of labels.
Description
Replaces the list of labels on an asset.
```csharp
using UnityEngine;
using UnityEditor;public class AssetDat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f6d881e352e | unity_docs | xr | What is `Camera.actualRenderingPath` in Unity? Explain its purpose and usage. | Camera.actualRenderingPath
public
RenderingPath
actualRenderingPath
;
Description
The rendering path that is currently being used (Read Only).
The actual rendering path might be different from the user-specified
renderingPath
if the underlying GPU/platform does not support the requested one, or some other ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8c2b1a302089 | unity_docs | rendering | In Unity's 'Build AssetBundles in parallel processes', what is 'Unsupported settings' and how does it work? | The following settings aren’t compatible with the
Multi-Process AssetBundle Building
setting:
The
Optimize Mesh
setting is silently disabled during the build.
Sprite Atlas V1
isn’t supported and an error is printed to the Console if you attempt to build with these settings enabled. Update to
Sprite Atlas V2
to build su... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c183740f39ba | unity_docs | math | Show me a Unity C# example demonstrating `Mesh.triangles`. | ultiple sub-meshes (Materials), the triangle list will contain all the triangles belonging to all its sub-meshes.
When you assign a triangle array using this function, the
subMeshCount
is set to 1. If you want to have multiple sub-meshes, use
subMeshCount
and
SetTriangles
.
It is recommended to assign a triangle a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3b68ce1794ee | unity_docs | editor | In Unity's 'Stack trace logging', what is 'Stack trace for managed and unmanaged code' and how does it work? | Unity can provide stack trace information for both managed and unmanaged code:
Managed code:
Managed DLLs or C#
scripts
running in Unity. These can be scripts that ship with Unity, custom scripts that you write, third-party scripts included with an
Asset store
plug-in
, or any other C# script that runs in the engine.
U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2f5011c2208 | unity_docs | scripting | What is `SearchService.ProjectSearchContext.requiredTypeNames` in Unity? Explain its purpose and usage. | ProjectSearchContext.requiredTypeNames
public IEnumerable<string>
requiredTypeNames
;
Description
An IEnumerable of strings that contains the type name constraints for this search.
This IEnumerable can be null or empty, in which case any Asset can be used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d024784a627 | unity_docs | math | What is `Mesh.AddBlendShapeFrame` in Unity? Explain its purpose and usage. | Mesh.AddBlendShapeFrame
Declaration
public void
AddBlendShapeFrame
(string
shapeName
,
float
frameWeight
,
Vector3[]
deltaVertices
,
Vector3[]
deltaNormals
,
Vector3[]
deltaTangents
);
Parameters
Parameter
Description
shapeName
Name of the blend shape to add a frame to.
frameWeight
Weight for the fram... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b14bebfa95c | unity_docs | editor | In Unity's 'Access package assets using scripts', what is 'Loading a Texture inside a package' and how does it work? | To load a Texture stored inside a package, use the LoadAssetAtPath method, which requires the
using UnityEditor
directive. Specify the path following the
Packages/<package-name>/
path scheme as demonstrated in this example:
```csharp
using UnityEditor;
// ...
Texture2D texture = (Texture2D)AssetDatabase.LoadAssetAtPath... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bf3cc6da1534 | unity_docs | scripting | What are the parameters of `LODGroup.SetLODs` in Unity? | Description Set the LODs for the LOD group. This will remove any existing LODs configured on the LODGroup. ```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public LODGroup group; void Start()
{
// Programmatically create a LOD group and add LOD levels.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ab3fc98c6fa7 | unity_docs | rendering | Explain 'GLSL in Unity' in Unity. | As well as writing
HLSL shader programs
, you can also write raw OpenGL Shading Language (GLSL)
shader
programs in Unity. This is only supported on OpenGL Core and OpenGL ES platforms.
Note:
This is not recommended or needed as part of a normal workflow; Unity cross-compiles your HLSL into optimized GLSL when needed. T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_581cb572f44b | unity_docs | scripting | What is `QualitySettings.asyncUploadPersistentBuffer` in Unity? Explain its purpose and usage. | QualitySettings.asyncUploadPersistentBuffer
public static bool
asyncUploadPersistentBuffer
;
Description
This flag determines whether Unity retains the ring buffer allocation used for asynchronous texture and mesh uploads after all upload operations have completed.
When this property is set to
true
, the ring... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a09838dd45d3 | unity_docs | rendering | What is `Texture.wrapModeU` in Unity? Explain its purpose and usage. | Texture.wrapModeU
public
TextureWrapMode
wrapModeU
;
Description
Texture U coordinate wrapping mode.
Controls wrapping mode along Texture U (horizontal) axis.
Additional resources:
TextureWrapMode
,
wrapMode
,
Texture assets
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6434d4576641 | unity_docs | rendering | What is `Renderer` in Unity? Explain its purpose and usage. | Renderer
class in
UnityEngine
/
Inherits from:
Component
/
Implemented in:
UnityEngine.CoreModule
Description
General functionality for all renderers.
A renderer is what makes an object appear on the screen. Use this class to access the renderer of any object, mesh or Particle System.
Renderers can be disable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09bd3d997fe2 | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoImporter.GetDefaultReference`. | public Object
GetDefaultReference
(string
name
);
Parameters
Parameter
Description
name
The name of a public field in the imported
MonoScript
.
Returns
Object
The Unity object to use as a default value for the given reference field.
Description
Gets the default value for a reference field in the impor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7a2919987d6d | unity_docs | physics | What are the parameters of `Rigidbody2D.Overlap` in Unity? | Returns int Returns the number of results placed in the results list. Description Get a list of all Colliders that overlap all Colliders attached to this Rigidbody2D . The integer return value is the number of results written into the results list. The results list will be resized if it doesn't contain enough elements ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68cb48b4cfa4 | unity_docs | math | Show me a Unity C# example demonstrating `Vector3.Cross`. | wo vectors.
The cross product of two vectors results in a third vector which is perpendicular
to the two input vectors. The result's magnitude is equal to the magnitudes of the
two inputs multiplied together and then multiplied by the sine of the angle between
the inputs. You can determine the direction of the result ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_982c85173185_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | A modular and easily customisable Unity MonoBehaviour for handling swipe and pinch motions on mobile.
Signature:
```csharp
public class PanAndZoom : MonoBehaviour
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_c5138e6686b5 | unity_docs | math | What is `TerrainData.SetHeights` in Unity? Explain its purpose and usage. | TerrainData.SetHeights
Declaration
public void
SetHeights
(int
xBase
,
int
yBase
,
float[,]
heights
);
Parameters
Parameter
Description
xBase
First x index of heightmap samples to set.
yBase
First y index of heightmap samples to set.
heights
Array of heightmap samples to set (values range from 0 to 1, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d53bebc285c9 | unity_docs | rendering | What is `Rendering.GraphicsTextureDescriptor.dimension` in Unity? Explain its purpose and usage. | GraphicsTextureDescriptor.dimension
public
Rendering.TextureDimension
dimension
;
Description
The dimensionality (type) of the GraphicsTexture.
Indicates type of a GraphicsTexture (2D Texture, 2D Texture array, cubemap, 3D volume Texture, etc.).
Additional resources:
TextureDimension
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_efe5bebe6aa2 | unity_docs | editor | What is `Unity.CodeEditor.CodeEditor.ParseArgument` in Unity? Explain its purpose and usage. | CodeEditor.ParseArgument
Declaration
public static string
ParseArgument
(string
arguments
,
string
path
,
int
line
,
int
column
);
Parameters
Parameter
Description
arguments
The string that contains the template arguments to parse.
path
The file path to open.
line
The Line number to place the cursor.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2673f78fc247 | unity_docs | rendering | Explain 'Diffuse Detail' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces this
shader
.
## Diffuse Detail Properties
This shader is a version of the regular Diffuse shader with additional data. It allows you to define a second “Detail” texture that will gradually appear as the camera gets closer to it. It can be used on terrain , ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_28 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive five or more arguments as part of its initialization process,with the fifth one being an object of type . Type of the fifth argument.
Signature:
```csharp
public interface IFifthArgument<TFifthArgument>
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_2ef071740505 | unity_docs | rendering | What is `Light.colorTemperature` in Unity? Explain its purpose and usage. | Light.colorTemperature
public float
colorTemperature
;
Description
The color temperature of the light.
Correlated Color Temperature (abbreviated as CCT) is multiplied with the color filter when calculating the final color of a light source. The color temperature of the electromagnetic radiation emitted from a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fd9e59bfa9cc | unity_docs | ui | Explain 'IMGUIContainer' in Unity. | The IMGUIContainer element renders IMGUI code in a UI. You can use it to render complex UIs that aren’t possible with the existing UI Toolkit elements.
## Create an IMGUIContainer
You can create an IMGUIContainer with UXML or C#.
Assume you have an IMGUI code snippet like the following:
```csharp
void IMGUICode()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2608f25225b9 | unity_docs | rendering | Show me a Unity C# example demonstrating `LineRenderer.numCornerVertices`. | LineRenderer.numCornerVertices
public int
numCornerVertices
;
Description
Set this to a value greater than 0, to get rounded corners between each segment of the line.
The value controls how many vertices are added to each joint, where a higher value will give a smoother result.
```csharp
using UnityEngine;
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2732fb56577c | unity_docs | rendering | In Unity's 'Get started with text', what is 'Create a UITK Text Settings asset' and how does it work? | Start with a runtime UI and create a
UITK Text Settings asset
that manages text settings for the panel. You also create a Resources folder and sub-folders to store font assets and custom style sheets.
Follow the steps in
Get started with Runtime UI
to create a simple runtime UI.
In the Assets folder, create a Resources... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e087e94b5e17 | unity_docs | scripting | What is `EditorGUILayout.CurveField` in Unity? Explain its purpose and usage. | EditorGUILayout.CurveField
Declaration
public static
AnimationCurve
CurveField
(
AnimationCurve
value
,
params GUILayoutOption[]
options
);
Declaration
public static
AnimationCurve
CurveField
(string
label
,
AnimationCurve
value
,
params GUILayoutOption[]
options
);
Declaration
public static
Anim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4205fc7db79 | unity_docs | scripting | What is `EditorApplication.ProjectWindowItemInstanceCallback` in Unity? Explain its purpose and usage. | EditorApplication.ProjectWindowItemInstanceCallback
Declaration
public delegate void
ProjectWindowItemInstanceCallback
(int
instanceID
,
Rect
selectionRect
);
Description
Delegate to be called for every visible list item in the ProjectWindow on every OnGUI event. Use this if you if you want to extend the fun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8c20c111d55 | unity_docs | editor | What is `Android.UserBuildSettings.DebugSymbols` in Unity? Explain its purpose and usage. | DebugSymbols
class in
UnityEditor.Android
Description
Contains settings for native symbols.
Static Properties
Property
Description
format
Specifies the format for the symbol package.
level
Specifies what sections are included into the debug symbol. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d5bb1c7ab77 | unity_docs | scripting | In Unity's 'Author native UWP plug-ins', what is 'Precompiled native plug-ins' and how does it work? | To P/Invoke into precompiled native plug-ins, you need to:
Load the DLL at runtime.
Find the function entry point.
Call the plug-in.
You need to
compile the DLLs
against the appropriate Windows SDK for the target CPU architecture. You also need to
configure the DLLs
in the Plug-in Inspector when you add them to a Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd2b19389d2b | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Loading.ContentLoadInterface.LoadContentFileAsync`. | Description
Loads a serialized file asynchronously from disk.
The status of the load operation can be accessed using the returned
ContentFile
. Objects loaded with this function will not be garbage collected; the user is responsible for calling
ContentFile.UnloadAsync
to free resources when they are no longer requ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8729a2091d96 | unity_docs | ui | Show me a Unity C# example demonstrating `EditorUtility.DisplayCancelableProgressBar`. | lass instead.
A return value of true indicates that the user pressed the
Cancel
button. When the return value is true, you must stop the task that is in progress. After you display the progress bar, use
EditorUtility.ClearProgressBar
to clear it.
Additional resources:
EditorUtility.DisplayProgressBar
,
EditorUtil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_21068941862a | unity_docs | scripting | Explain 'Project configuration' in Unity. | Understand Unity’s project structure, and set up version control so you can collaborate with your team.
Topic Description Version control
Understand Unity’s version control integration options.
Default project directories
Understand the default folders that Unity creates when you make a project.
Reserved folder name re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c62914ea7263 | unity_docs | editor | What is `iOS.Xcode.PBXProject.ReplaceFile` in Unity? Explain its purpose and usage. | PBXProject.ReplaceFile
Declaration
public void
ReplaceFile
(string
fileGuid
,
string
path
,
iOS.Xcode.PBXSourceTree
source
);
Parameters
Parameter
Description
fileGuid
The GUID of the file reference.
path
The physical path to the new file on the filesystem.
source
The source tree the path is relative... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35e5f6d4eda4 | unity_docs | scripting | What is `UIElements.MeshGenerationContext.InsertMeshGenerationNode` in Unity? Explain its purpose and usage. | MeshGenerationContext.InsertMeshGenerationNode
Declaration
public void
InsertMeshGenerationNode
(out
UIElements.MeshGenerationNode
node
);
Parameters
Parameter
Description
node
The inserted mesh generation node.
Description
Inserts a node into the rendering tree that can be populated from the job system... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2fb6b1d378fb | unity_docs | scripting | Explain 'EnumField' in Unity. | An EnumField lets users select a value from an enumeration.
Note
: To align an EnumField with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create an EnumField
You can create an EnumField with UI Builder, UXML, and C#.
As... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8bc0a9bfa481 | unity_docs | rendering | In Unity's 'GPU texture formats reference', what is 'Supported texture formats in Web' and how does it work? | The following table provides the supported texture formats for the Web platform.
Format Description ASTC
Adaptive Scalable
Texture Compression
(ASTC) is an advanced lossy texture compression format. Widely used for mobile browsers / devices.
DXT
Also known as S3 Texture Compression (S3TC), DXT is mainly used for deskto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0df5f515b650 | unity_docs | physics | What is `Collider2D.includeLayers` in Unity? Explain its purpose and usage. | Collider2D.includeLayers
public
LayerMask
includeLayers
;
Description
The additional Layers that this
Collider2D
should include when deciding if a contact with another
Collider2D
should happen or not.
The Layer Collision Matrix defines which Layers can and cannot contact other Layers. This property allows... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f23835bbb716 | unity_docs | editor | What are the parameters of `EditorGUILayout.TagField` in Unity? | Returns string The tag selected by the user. Description Make a tag selection field. Assign tags on the selected GameObjects. ```csharp
// Simple editor script that lets you set a tag for the selected GameObjects.
using UnityEditor;
using UnityEngine;public class EditorGUILayoutTagField : EditorWindow
{
static stri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9e24c2450c93 | unity_docs | rendering | In Unity's 'Set up transparent videos in Unity', what is 'Change your entire video’s transparency (global alpha)' and how does it work? | To change the level of transparency for your entire video’s image in Unity:
Create a
Video Player
(
Add
(
+
) >
Video
>
Video Player
).
In the
Video Player Inspector window, set
Render Mode to Camera
Near Plane or Camera Far Plane
.
Change Alpha to your preferred value.
Set to 0 for full transparency (the video isn’t v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b2ef18fe496 | unity_docs | scripting | Give me an overview of the `ExecuteAlways` class in Unity. | ExecuteAlways
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Causes a MonoBehaviour-derived class to execute in Edit mode and prefab editing mode in addition to at runtime.
By default, MonoBehaviour
event functions
only execute at runtime. Applying
ExecuteAlways
to a MonoBehaviour... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce6927eb4e71 | unity_docs | scripting | What is `Rendering.VisibleReflectionProbe.reflectionProbe` in Unity? Explain its purpose and usage. | VisibleReflectionProbe.reflectionProbe
public
ReflectionProbe
reflectionProbe
;
Description
Accessor to
ReflectionProbe
component.
Additional resources:
CullingResults.visibleReflectionProbes
,
ReflectionProbe
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c8c843ba356b | unity_docs | editor | In Unity's 'Use numeric field expressions', what is 'Use mathematical expressions' and how does it work? | You can use a mathematical expression to calculate the value of a numeric field.
For example, if you enter
2+3
, the field calculates the value
5
and uses it. When you change focus away from the field, the field refreshes and shows the calculated value.
For more information about supported expressions, refer to
Express... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa1326a26d78 | unity_docs | rendering | What is `Rendering.RayTracingInstanceCullingConfig.alphaTestedMaterialConfig` in Unity? Explain its purpose and usage. | RayTracingInstanceCullingConfig.alphaTestedMaterialConfig
public
Rendering.RayTracingInstanceMaterialConfig
alphaTestedMaterialConfig
;
Description
A configuration for defining when a Material is considered being alpha tested.
RayTracingAccelerationStructure.CullInstances
can specify a
RayTracingSubMeshFlag... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ee64df05f4b0 | unity_docs | rendering | In Unity's 'Troubleshooting the Unity Editor', what is 'Activation' and how does it work? | The Unity Hub is the primary method for all license management operations. For information about all license activation methods, refer to
License activation methods
.
If you experience issues activating your license, refer to
License Troubleshooting
.
If you still have problems activating your license or logging in to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5d799c27b20 | unity_docs | rendering | What is `ShaderData.Subshader` in Unity? Explain its purpose and usage. | Subshader
class in
UnityEditor
Description
This class describes a subshader.
Properties
Property
Description
LevelOfDetail
The level of detail (LOD) specified in this subshader (Read Only).
PassCount
The number of passes for this subshader.
Public Methods
Method
Description
FindTagValue
Searches for the t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8cd21b24701 | unity_docs | scripting | What is `ChangeGameObjectParentEventArgs.ctor` in Unity? Explain its purpose and usage. | ChangeGameObjectParentEventArgs Constructor
Declaration
public
ChangeGameObjectParentEventArgs
(int
instanceId
,
SceneManagement.Scene
previousScene
,
int
previousParentInstanceId
,
SceneManagement.Scene
newScene
,
int
newParentInstanceId
);
Parameters
Parameter
Description
instanceId
The instance ID... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b63bcf71aed | unity_docs | scripting | Explain 'Add components to GameObjects' in Unity. | Components define the behavior and functionality of GameObjects in Unity. Add components to GameObjects to give functionality like playing audio, responding to physics, or running custom
scripts
.
Topic Description Introduction to components
An overview of what components are.
Use components
How to use components.
Crea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33782a59982b | unity_docs | math | What is `Tilemaps.TilemapRenderer.chunkCullingBounds` in Unity? Explain its purpose and usage. | TilemapRenderer.chunkCullingBounds
public
Vector3
chunkCullingBounds
;
Description
Bounds used for culling of
Tilemap
chunks.
These bounds extend the boundary of Tilemap chunks and are used for culling. This helps to ensure that oversized Sprites will not be clipped during culling for the
TilemapRenderer
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3dcbfea8f69f | unity_docs | scripting | What is `CharacterController.Move` in Unity? Explain its purpose and usage. | CharacterController.Move
Declaration
public
CollisionFlags
Move
(
Vector3
motion
);
Description
Supplies the movement of a GameObject with an attached CharacterController component.
The
CharacterController.Move
motion moves the GameObject in the given direction. The given direction requires absolute move... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8a9a701460e9 | unity_docs | rendering | In Unity's 'Introduction to textures', what is 'Textures for use on 3D models' and how does it work? | Textures are applied to objects using
Materials
. Materials use specialised graphics programs called Shaders to render a texture on the mesh surface. Shaders can implement lighting and colouring effects to simulate shiny or bumpy surfaces among many other things. They can also make use of two or more textures at a time... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56dc5b07b46f | unity_docs | scripting | What is `Selection.Contains` in Unity? Explain its purpose and usage. | Selection.Contains
Declaration
public static bool
Contains
(int
instanceID
);
Declaration
public static bool
Contains
(
Object
obj
);
Description
Returns whether an object is contained in the current selection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_301f79790375 | unity_docs | rendering | What is `ShaderUtil.CompilePass` in Unity? Explain its purpose and usage. | ShaderUtil.CompilePass
Declaration
public static void
CompilePass
(
Material
material
,
int
pass
,
bool
forceSync
);
Parameters
Parameter
Description
material
Target Material.
pass
Index of the target Shader pass.
forceSync
Forces the script execution to wait until the compilation has finished. Option... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1d6def07e1c3 | unity_docs | xr | Explain 'visionOS' in Unity. | visionOS is the operating system of the Vision Pro, Apple’s latest spatial computing device. Unity developers can leverage existing 3D scenes and assets to build games or applications for visionOS. For more information about visionOS, refer to Apple’s
visionOS Overview
.
visionOS provides a few different modes in which... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af974db96022 | unity_docs | rendering | What is `Material.DisableKeyword` in Unity? Explain its purpose and usage. | Material.DisableKeyword
Declaration
public void
DisableKeyword
(ref
Rendering.LocalKeyword
keyword
);
Declaration
public void
DisableKeyword
(string
keyword
);
Parameters
Parameter
Description
keyword
The
LocalKeyword
to disable.
keyword
The name of the
LocalKeyword
to disable.
Description
Di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c8fd0ce48ac | unity_docs | ui | Show me a Unity C# example demonstrating `GUI.ScrollTo`. | GUI.ScrollTo
Declaration
public static void
ScrollTo
(
Rect
position
);
Description
Scrolls all enclosing scrollviews so they try to make
position
visible.
```csharp
// Draws a Scroll view with 2 buttons inside.
// When clicked each button it moves the scroll
// where the other button is locatedusing UnityE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3e6c48b04dd8 | unity_docs | rendering | What is `LightProbes.cellCount` in Unity? Explain its purpose and usage. | LightProbes.cellCount
public int
cellCount
;
Description
The number of cells space is divided into (Read Only).
This includes both interior cells (tetrahedra) and outer space cells.
Deprecated, use
LightProbes.cellCountSelf
instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edec41f9c7ee | unity_docs | scripting | What is `Unity.IntegerTime.RationalTime.TicksPerSecond` in Unity? Explain its purpose and usage. | TicksPerSecond
struct in
Unity.IntegerTime
/
Implemented in:
UnityEngine.CoreModule
Description
The number of ticks per second ( rate ) of the discrete time, expressed as a rational number.
Static Properties
Property
Description
DefaultTicksPerSecond
The default rate is 141120000 ticks per second. This value... | 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.