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_906386ed08ff | unity_docs | audio | What is `Networking.DownloadHandlerAudioClip.ctor` in Unity? Explain its purpose and usage. | DownloadHandlerAudioClip Constructor
Declaration
public
DownloadHandlerAudioClip
(string
url
,
AudioType
audioType
);
Declaration
public
DownloadHandlerAudioClip
(Uri
uri
,
AudioType
audioType
);
Parameters
Parameter
Description
url
The nominal (pre-redirect) URL at which the audio clip is located... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9f860826dbb | unity_docs | physics | What is `Collider.material` in Unity? Explain its purpose and usage. | Collider.material
public
PhysicsMaterial
material
;
Description
The material used by the collider.
If material is shared by colliders,
it will duplicate the material and assign it to the collider.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Expose properties in the inspector for ea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63ebfbdd5760 | unity_docs | scripting | What is `Unity.Properties.PropertyContainer.Accept` in Unity? Explain its purpose and usage. | PropertyContainer.Accept
Declaration
public static void
Accept
(
Unity.Properties.IPropertyBagVisitor
visitor
,
TContainer
container
,
Unity.Properties.VisitParameters
parameters
);
Parameters
Parameter
Description
visitor
The visitor.
container
The container to visit.
parameters
The visit parameter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07545bc34867 | unity_docs | performance | What is `Unity.Burst.BurstDiscardAttribute` in Unity? Explain its purpose and usage. | BurstDiscardAttribute
class in
Unity.Burst
/
Implemented in:
UnityEngine.CoreModule
Description
Use this attribute to exclude a method or property from being compiled to native code by the Burst compiler.
By default, Burst compiles all methods in jobs decorated with the
[BurstCompile]
attribute. You can use t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_87d589ff0966 | unity_docs | scripting | What is `Terrain.heightmapMaximumLOD` in Unity? Explain its purpose and usage. | Terrain.heightmapMaximumLOD
public int
heightmapMaximumLOD
;
Description
Limits the Terrain's maximum rendering resolution.
Use on low-end graphics cards to block the highest level of detail for Terrain.
A value of 0 for this property allows the terrain to be shown at the highest detail. A value of 1 reduces ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09139414926c | unity_docs | scripting | What is `PrefabOverridesOptions` in Unity? Explain its purpose and usage. | PrefabOverridesOptions
enumeration
Description
Flags that can be used to control which overrides shoud be kept or cleared when using
ReplacePrefabAssetOfPrefabInstance
.
Properties
Property
Description
KeepAllPossibleOverrides
Keep all possible overrides (default value).
ClearNonDefaultPropertyOverrides
Clear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_578c7013399b | unity_docs | physics | Give me an overview of the `RigidbodyConstraints2D` class in Unity. | RigidbodyConstraints2D
enumeration
Description
Use these flags to constrain motion of the
Rigidbody2D
.
Additional resources:
Rigidbody2D.constraints
.
Properties
Property
Description
None
No constraints.
FreezePositionX
Freeze motion along the X-axis.
FreezePositionY
Freeze motion along the Y-axis.
Freez... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e98011d0f275 | unity_docs | scripting | What is `UIElements.TagField` in Unity? Explain its purpose and usage. | TagField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.PopupField_1
Description
A
TagField
editor. For more information, refer to
UXML element TagField
.
Static Properties
Property
Description
inputUssClassName
USS class name of input elements in elements of this type.
labelUssClassN... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1886857cf6a2 | unity_docs | editor | What is `ShortcutManagement.ShortcutManager.UnregisterContext` in Unity? Explain its purpose and usage. | ShortcutManager.UnregisterContext
Declaration
public static void
UnregisterContext
(
ShortcutManagement.IShortcutContext
context
);
Parameters
Parameter
Description
context
The custom context to remove from the shortcut context list.
Description
Removes a
IShortcutContext
from the shortcut context list.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_575b2ad2605b | unity_docs | rendering | In Unity's 'Creating models for animation', what is 'Modeling' and how does it work? | There are a few guidelines you can follow to ensure a model works well with animation in a Unity Project:
Use a topology with a
well-formed structure
. Generally, you should consider how the vertices and triangles of the model distort as it animates. A good topology allows the model to move without distorting the mesh.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_018d411fe5ef | unity_docs | rendering | Show me a Unity C# example demonstrating `ModelImporter.SearchAndRemapMaterials`. | Returns true otherwise.
Description
Search the project for matching materials and use them instead of the internal materials.
Unity uses the naming convention specified by nameOption to find and match Material assets in your project and maps them to the model. Use the search option to specify if you want the searc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56586becb9e0 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.RefreshItem` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.RefreshItem
Declaration
public void
RefreshItem
(int
index
);
Parameters
Parameter
Description
index
The item index.
Description
Rebinds a single item if it is currently visible in the collection view. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c071805a3927 | unity_docs | rendering | What is `ComputeShader.Dispatch` in Unity? Explain its purpose and usage. | ComputeShader.Dispatch
Declaration
public void
Dispatch
(int
kernelIndex
,
int
threadGroupsX
,
int
threadGroupsY
,
int
threadGroupsZ
);
Parameters
Parameter
Description
kernelIndex
Which kernel to execute. A single compute shader asset can have multiple kernel entry points.
threadGroupsX
Number of work... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ec4404164af9 | unity_docs | rendering | Explain 'Surface Shader examples in the Built-In Render Pipeline' in Unity. | Examples of Surface Shaders in the Built-In
Render Pipeline
.
Page Description Normal mapping Surface Shader example
An example of a
Surface Shader
that uses normal mapping.
Reflection Surface Shader examples
An example of a Surface Shader that renders reflections of the sky.
Vertex function Surface Shader example
Exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c94bc2b94257 | unity_docs | networking | Explain 'Ads Mediation' in Unity. | com.unity.services.levelplay
## Description
After you’ve installed the Ads Mediation package, create a LevelPlay account and complete your app’s ad format integrations if you haven’t done so already. Here are the next steps:
https://developers.is.com/ironsource-mobile/unity/levelplay-starter-kit/
IMPORTANT UPGRADE NO... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_979fc3781413 | unity_docs | scripting | Show me a Unity C# example demonstrating `Keyframe.ctor`. | Keyframe Constructor
Declaration
public
Keyframe
(float
time
,
float
value
);
Description
Create a keyframe.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Make a GameObject follow a sine function.
// Over the X and Y axis. AnimationCurve anim;
Keyframe[] ks; void Start()
{
ks = ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_736e2dc665a0 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetPBXProjectPath`. | be opened later using the
ReadFromFile
function.
Description
Returns the path to PBX project in the given Unity build path.
This function can only be used for Unity-generated projects.
Note:
On VisionOS and macOS platforms this will return
BUILDPATH/Unity-iPhone.xcodeproj/project.pbxproj
, which isn't correct.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e35f16891ce | unity_docs | physics | What is `Collider2D.CompositeOperation.Merge` in Unity? Explain its purpose and usage. | Collider2D.CompositeOperation.Merge
Description
Indicates a composite operation that composes geometry using a Boolean OR operation.
This composite operation will result in a region where both regions of geometry are merged together.
Additional resources:
Collider2D.compositeOperation
and
Collider2D.compositeOrd... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b4f344dd364 | unity_docs | scripting | What is `Experimental.GraphView.GraphElement.SetPosition` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElement.SetPosition
Declaration
public void
SetPosition
(
Rect
newPos
);
Parameters
Parameter
Description
newPos
New position.
Description
Set the GraphElement position. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_344a1e5368c6 | unity_docs | scripting | What is `Android.DownloadAssetPackAsyncOperation.keepWaiting` in Unity? Explain its purpose and usage. | DownloadAssetPackAsyncOperation.keepWaiting
public bool
keepWaiting
;
Description
Checks if the operation is still running.
Returns
true
if the operation is still running. Otherwise, returns
false
.
Read-only.
Additional resources:
DownloadAssetPackAsyncOperation.isDone
,
DownloadAssetPackAsyncOperation.pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_afe0e6d98d22 | unity_docs | math | What is `UIElements.Clickable.ProcessDownEvent` in Unity? Explain its purpose and usage. | Clickable.ProcessDownEvent
Declaration
protected void
ProcessDownEvent
(
UIElements.EventBase
evt
,
Vector2
localPosition
,
int
pointerId
);
Description
This method processes the down event sent to the target Element. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_124182213c14 | unity_docs | rendering | What is `Rendering.EditorGraphicsSettings.SetTierSettings` in Unity? Explain its purpose and usage. | EditorGraphicsSettings.SetTierSettings
Declaration
public static void
SetTierSettings
(
Build.NamedBuildTarget
target
,
Rendering.GraphicsTier
tier
,
Rendering.TierSettings
settings
);
Declaration
public static void
SetTierSettings
(
BuildTargetGroup
target
,
Rendering.GraphicsTier
tier
,
Rendering... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e99bde6dd211 | unity_docs | networking | In Unity's 'Diagnose network issues', what is 'Method 2: Manually run the script' and how does it work? | Locate the RunUnityPackageManagerDiagnostics script in the Diagnostics folder within the
installation folder for your Unity Editor
:
Operating system:
Path to Diagnostics command line tool
:
Windows
<path-to-unity-installation-folder>
\Unity
\Data
\Resources
\PackageManager
\Diagnostics
\RunUnityPackageManagerDiagnosti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_56f59ef53a89 | unity_docs | input | In Unity's 'Troubleshooting common cross-platform issues', what is 'Touches and clicks' and how does it work? | The
Input.GetMouseButtonXXX
functions are designed to have an obvious interpretation on mobile devices. The screen reports a simple touch as a left click and the
Input.mousePosition
property gives the position of the touch, as long as the finger is touching the screen. Games with simple mouse interactions can often wor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9256484aa0ed | unity_docs | rendering | What is `Rendering.RendererListParams.ctor` in Unity? Explain its purpose and usage. | RendererListParams Constructor
Declaration
public
RendererListParams
(
Rendering.CullingResults
cullingResults
,
Rendering.DrawingSettings
drawSettings
,
Rendering.FilteringSettings
filteringSettings
);
Parameters
Parameter
Description
cullingResults
The set of visible objects to draw. You typically o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e717e479e0fd | unity_docs | scripting | What is `AssetPostprocessor.OnPostprocessModel` in Unity? Explain its purpose and usage. | AssetPostprocessor.OnPostprocessModel(GameObject)
Description
Add this function to a subclass to get a notification when a model has completed importing.
This lets you modify the imported Game Object, Meshes, AnimationClips referenced by it. Please note that the GameObjects, AnimationClips and Meshes only exist dur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2c99b972d2cc_doc_1 | github | scripting | What does `GetSDKLocationFromPrefs` do in this Unity script? Explain its purpose and signature. | Returns custom location if default install directory was not used
Signature:
```csharp
public static string GetSDKLocationFromPrefs()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_b0471d32b6cd | unity_docs | ui | Explain 'Customize the GUI for your audio plug-in' in Unity. | You can customize how Unity displays the parameter descriptions you create in your
native DSP plug-in
. By default, Unity displays these parameter descriptions as sliders. However, some
plug-ins
need more complex user interaction that allows the user more control.
You can use C# to customize the GUI and replace the def... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b0a89aaa6753 | unity_docs | rendering | Explain 'Use search providers' in Unity. | All searches use at least one search provider:
The default providers are Project, Hierarchy, Menu, and Settings. If you run a search without specifying a provider, Search uses these default providers.
Alternatively, you can focus the search to one provider. This can be one of the default search providers, or any other ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5a56aebbb46 | unity_docs | performance | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckGetSecondaryDataPointerAndThrow` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.CheckGetSecondaryDataPointerAndThrow
Declaration
public static void
CheckGetSecondaryDataPointerAndThrow
(
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
);
Parameters
Parameter
Description
handle
The AtomicSafetyHandle to check.
Description
Check whether it's safe to creat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_24af24ac3dba | unity_docs | xr | In Unity's 'Search preferences reference', what is 'Search provider settings' and how does it work? | Setting Function A
[Provider Toggles]
Enable and disable providers. When you disable a provider, Search ignores it when executing searches.
B
[Provider Order]
Use these settings to modify the order in which search items are shown on the screen. All items of a given provider priority appear before any lower priority ite... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_56e3525199d8 | unity_docs | scripting | In Unity's 'Yield instruction reference', what is 'Editor yield instructions' and how does it work? | The Editor coroutines package adds support for coroutines that run in the Unity Editor’s Edit mode. The package includes additional yield instructions for Edit mode coroutines.
Instruction Description EditorWaitForSeconds
Resumes an EditorCoroutine after a specified number of seconds, taking the time scale into account... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cdf570a4faf | unity_docs | math | What is `Jobs.TransformAccess.SetLocalPositionAndRotation` in Unity? Explain its purpose and usage. | TransformAccess.SetLocalPositionAndRotation
Declaration
public void
SetLocalPositionAndRotation
(
Vector3
localPosition
,
Quaternion
localRotation
);
Description
Sets the position and rotation of the transform in local space relative to its parent transform.
When setting both the position and rotation of a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd9cc0088d08 | unity_docs | scripting | What is `Overlays.IMGUIOverlay.OnGUI` in Unity? Explain its purpose and usage. | IMGUIOverlay.OnGUI
Declaration
public void
OnGUI
();
Description
Implement IMGUI controls and logic in this method.
This function is invoked by the IMGUI event loop. It is the only method required to implement an IMGUIOverlay. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_77404eeb9685 | unity_docs | editor | Explain 'Visual Scripting' in Unity. | com.unity.visualscripting
## Description
Visual scripting is a workflow that uses visual, node-based graphs to design behaviors rather than write lines of C# script.
Enabling artists, designers and programmers alike, visual scripting can be used to design final logic, quickly create prototypes, iterate on gameplay an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5efeff919693 | unity_docs | rendering | What is `UnityEngine.HierarchyCoreModule` in Unity? Explain its purpose and usage. | UnityEngine.HierarchyCoreModule
Description
Module that contains a high-performance hierarchy container.
Classes
Class
Description
Hierarchy
Represents a tree-like container of nodes.
HierarchyCommandList
Represents a list of commands that modify a hierarchy.
HierarchyFlattened
Represents a read-only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5996420db250 | unity_docs | editor | Explain 'Web native plug-ins for Emscripten' in Unity. | Unity uses the
Emscripten compiler
toolchain to cross-compile the Unity runtime code written in C and C++ into WebAssembly (also called Wasm). Emscripten generates small code, is load-time and memory efficient, and aims to deliver close to native speed execution.
Unity uses IL2CPP to convert the .NET game code in your ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07fa36c66fcd | unity_docs | scripting | What is `PackageManager.UI.Sample.importPath` in Unity? Explain its purpose and usage. | Sample.importPath
public string
importPath
;
Description
The full path to where the sample will be imported, under the project assets folder.
It is in the form of `Project Full Path/Assets/Samples/Package Display Name/Package Version/Sample Display Name/`. If the sample is an asset package (a .unitypackage fil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_24872dd32f83 | unity_docs | xr | In Unity's 'Unity Accelerator downloads', what is 'Installer: Fixed upgrade failure when previous installation is tampered or partially deleted' and how does it work? | The installer could fail during upgrade if a previous Unity Accelerator installation was partially deleted. For example, if the
unity-accelerator.cfg
configuration file was manually removed while the system service registration remained in place.
Now, the scenario is detected, and the installation proceeds as a fresh i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a1115df36af | unity_docs | math | What is `Rendering.BatchCullingOutput` in Unity? Explain its purpose and usage. | BatchCullingOutput
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Contains the output data where OnPerformCulling will write draw commands into.
Properties
Property
Description
customCullingResult
Optional pointer to custom culling result data.
drawCommands
A single-ele... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_91563521e48c | unity_docs | rendering | In Unity's 'Troubleshooting asynchronous shader compilation', what is 'Customize compile time rendering' and how does it work? | You can make your custom tools draw something other than the placeholder shader for each material. This way, you can avoid rendering in plain cyan, and instead draw something else while the shader variant compiles.
To check if a specific shader variant has compiled, see
Detecting asynchronous shader compilation
.
To tr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ff945751b6a | unity_docs | scripting | What is `Search.PropertyDatabaseRecordKey.propertyKey` in Unity? Explain its purpose and usage. | PropertyDatabaseRecordKey.propertyKey
public
Hash128
propertyKey
;
Description
The key of the property.
This key is a hash of a property name or path.
Additional resources:
PropertyDatabase.CreatePropertyHash
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_892a19c5df01 | unity_docs | rendering | What is `ShadowProjection` in Unity? Explain its purpose and usage. | ShadowProjection
enumeration
Description
Shadow projection type for
Quality Settings
.
Properties
Property
Description
CloseFit
Close fit shadow maps with linear fadeout.
StableFit
Stable shadow maps with spherical fadeout. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff634237b769 | unity_docs | rendering | What is `Cubemap.UpdateExternalTexture` in Unity? Explain its purpose and usage. | Cubemap.UpdateExternalTexture
Declaration
public void
UpdateExternalTexture
(IntPtr
nativeTexture
);
Parameters
Parameter
Description
nativeTexture
Native cubemap texture object.
Description
Updates Unity cubemap to use different native cubemap texture object.
This method is mostly useful for
native code... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5e69cf610cc | unity_docs | editor | What is `Networking.PlayerConnection.PlayerConnectionGUILayout.ConnectionTargetSelectionDropdown` in Unity? Explain its purpose and usage. | PlayerConnectionGUILayout.ConnectionTargetSelectionDropdown
Declaration
public static void
ConnectionTargetSelectionDropdown
(
Networking.PlayerConnection.IConnectionState
state
,
GUIStyle
style
,
int
maxWidth
);
Parameters
Parameter
Description
state
The state of the connection that the
EditorWindow
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_17edcc557269 | unity_docs | rendering | In Unity's 'JavaScript interface in Unity Web builds', what is 'Display error, warning, or custom banners' and how does it work? | Use the
unityShowBanner()
function to display a message banner, or override the function to customize it for your own purposes.
Parameter Description msg
The message you want to display.
type
The type of message you want to display. For example:
Use
type == error
to display a permanent error message on top of the canva... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3d358fce5c8 | unity_docs | rendering | What is `TextureImporterSettings.alphaTestReferenceValue` in Unity? Explain its purpose and usage. | TextureImporterSettings.alphaTestReferenceValue
public float
alphaTestReferenceValue
;
Description
Returns or assigns the alpha test reference value.
Returns the reference value (also known as the alpha cutoff) used to compute values needed to preserve alpha mipmap coverage on textures. A pixel is considered to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc8d3a801284 | unity_docs | scripting | What is `UIElements.LongField.StringToValue` in Unity? Explain its purpose and usage. | LongField.StringToValue
Declaration
protected long
StringToValue
(string
str
);
Parameters
Parameter
Description
str
The string to convert.
Returns
long
The long integer parsed from the string.
Description
Converts a string to a long integer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4ead470fa4c | unity_docs | physics | What is `UIElements.Button.clickable` in Unity? Explain its purpose and usage. | Button.clickable
public
UIElements.Clickable
clickable
;
Description
Clickable MouseManipulator for this Button.
The default
Clickable
object provides a list of actions that are called using
one or more activation filters.
To add or remove activation triggers, modify
clickable.activators
.
An activ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4e58d6609b73_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Is true when the Magic Leap XR package is installed
Signature:
```csharp
private static bool _hasMagicLeapInstalled
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_d5029eb611a6 | unity_docs | editor | What is `SceneManagement.StageUtility.PlaceGameObjectInCurrentStage` in Unity? Explain its purpose and usage. | StageUtility.PlaceGameObjectInCurrentStage
Declaration
public static void
PlaceGameObjectInCurrentStage
(
GameObject
gameObject
);
Parameters
Parameter
Description
gameObject
The GameObject to be placed in the current stage.
Description
Place the given GameObject in the current stage being edited.
When c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2283eb72fd0f | unity_docs | scripting | What are the parameters of `Camera.ScreenPointToRay` in Unity? | Description Returns a ray going from camera through a screen point. Resulting ray is in world space, starting on the near plane of the camera and going through
position's (x,y) pixel coordinates on the screen. ```csharp
//Attach this script to your Camera
//This draws a line in the Scene view going through a point 200 ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9e464194e49 | unity_docs | scripting | What is `AwaitableCompletionSource_1` in Unity? Explain its purpose and usage. | AwaitableCompletionSource<T0>
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Objects allowing to control completion of an Awaitable object from user code.
Properties
Property
Description
Awaitable
Get the awaitable controlled by the completion source.
Public Methods
Method
Descr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_81832860fb98 | unity_docs | xr | Explain 'Package dependency and resolution' in Unity. | When you work in the Package Manager window, you can install a package from several sources (a registry , a local folder or tarball , a
Git URL
, and by name ). However, while the Package Manager installs packages from these sources seamlessly, it first has to make a series of calculations to decide which version to in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce204e992b25 | unity_docs | rendering | Show me a Unity C# example demonstrating `Cubemap.GetPixel`. | e texture uses into
Color
.
GetPixel
also needs to decompress compressed textures, and use memory to store the decompressed area. To get pixel data more quickly, use
GetPixelData
instead.
If you need to get a large block of pixels, it might be faster to use
GetPixels
.
You can't use
GetPixel
with textures that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_729cea9c9d31 | unity_docs | scripting | What is `Unity.IntegerTime.RationalTimeExtensions.ToDouble` in Unity? Explain its purpose and usage. | RationalTimeExtensions.ToDouble
Declaration
public static double
ToDouble
(
Unity.IntegerTime.RationalTime
value
);
Parameters
Parameter
Description
value
The RationalTime value.
Returns
double
The Double representation for rational time (potentially lossy).
Description
Converts the data type to Dou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9895f409292c | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISkin.horizontalScrollbarThumb`. | GUISkin.horizontalScrollbarThumb
public
GUIStyle
horizontalScrollbarThumb
;
Description
Style used by default for the thumb that is dragged in
GUI.HorizontalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the horizontal scrollbar thumb of the current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_57d5cfcb8163 | unity_docs | physics | Explain 'Android symbols' in Unity. | To help you debug your application, Unity can generate a package that contains symbol files with debug metadata for native Unity libraries. Symbol files contain an executable file section called symbol table (.symtab
) that translates active memory addresses into information you can use, like a method name. The transla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bde8c61faadb | unity_docs | scripting | Give me an overview of the `RectTransform` class in Unity. | RectTransform
class in
UnityEngine
/
Inherits from:
Transform
/
Implemented in:
UnityEngine.CoreModule
Description
Position, size, anchor and pivot information for a rectangle.
RectTransforms are used for GUI but can also be used for other things.
It's used to store and manipulate the position, size, and anch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81c9b7f163d3 | unity_docs | editor | What is `EditorApplication.isPlayingOrWillChangePlaymode` in Unity? Explain its purpose and usage. | EditorApplication.isPlayingOrWillChangePlaymode
public static bool
isPlayingOrWillChangePlaymode
;
Description
Editor application state which is true only when the Editor is currently in or about to enter Play mode. (Read Only)
The value is
true
when the Editor is either in Play mode or will enter Play mode a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a62813f01b3f | unity_docs | scripting | What is `UIElements.EventDispatcherGate.ctor` in Unity? Explain its purpose and usage. | EventDispatcherGate Constructor
Declaration
public
EventDispatcherGate
(
UIElements.EventDispatcher
d
);
Parameters
Parameter
Description
d
The dispatcher controlled by this gate.
Description
Constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_10f792ad1b9c | github | scripting | Write a Unity C# animation script for Glass Hologram | ```csharp
using UnityEngine;
public class GlassHologram : MonoBehaviour
{
public Animator animator;
private void OnEnable()
{
animator.SetBool("Apear", true);
}
private void OnDisable()
{
animator.SetBool("Apear", false);
}
}
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_a82ee05112cc | unity_docs | physics | What is `ForceMode2D.Force` in Unity? Explain its purpose and usage. | ForceMode2D.Force
Description
Add a force to the Rigidbody2D, using its mass.
Apply the force in each FixedUpdate over a duration of time. This mode depends on the mass of rigidbody so more force must be applied to move higher-mass objects the same amount as lower-mass objects.
This mode is useful for setting up re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_04ce499b6751 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.ISearchView.itemIconSize`. | ISearchView.itemIconSize
public float
itemIconSize
;
Description
Defines the size of items in the search view.
.
```csharp
using UnityEditor;
using UnityEditor.Search;
static class Example_ISearchView_itemIconSize
{
[MenuItem("Examples/ISearchView/itemIconSize")]
public static void Run()
{
// SearchServic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16540b144bb5 | unity_docs | editor | What are the parameters of `AssetDatabase.ClearLabels` in Unity? | Description Removes all labels attached to an asset. ```csharp
using UnityEngine;
using UnityEditor;
public class AssetDatabaseExamples : MonoBehaviour
{
[MenuItem("AssetDatabase/Clear Labels")]
static void ClearAssetLabels()
{
for (var i = 0; i < 10; i++)
{
var prefabPath = $"As... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64745322816c | unity_docs | editor | What is `LineEndingsMode` in Unity? Explain its purpose and usage. | LineEndingsMode
enumeration
Description
Defines the type of line endings used when creating new C# files from within the editor.
Properties
Property
Description
OSNative
File endings are the default for the active platform. On Windows, this is a carriage return character followed by linefeed character (\r\n). O... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8559b7b0234 | unity_docs | editor | What is `EditorGUILayout.DelayedTextField` in Unity? Explain its purpose and usage. | EditorGUILayout.DelayedTextField
Declaration
public static string
DelayedTextField
(string
text
,
params GUILayoutOption[]
options
);
Declaration
public static string
DelayedTextField
(string
text
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public static string
DelayedTextField
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6cfbab9f246 | unity_docs | scripting | What is `Gradient.colorKeys` in Unity? Explain its purpose and usage. | Gradient.colorKeys
public GradientColorKey[]
colorKeys
;
Description
All color keys defined in the gradient.
Note that the color keys will be automatically sorted by time value and that it is ensured to always have a minimum of 2 color keys. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3e042db0271c | github | scripting | Write a Unity C# MonoBehaviour script called Simulation Loop Driver | ```csharp
using FactoryMustScale.Simulation;
using FactoryMustScale.Simulation.Core;
using FactoryMustScale.Simulation.Domains.Factory.Systems.Transport;
using FactoryMustScale.Simulation.Item;
using UnityEngine;
namespace FactoryMustScale.Runtime
{
/// <summary>
/// Unity-facing wrapper that advances the dete... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_139040b0a0ff | unity_docs | scripting | Give me an overview of the `AppleMobileArchitectureSimulator` class in Unity. | AppleMobileArchitectureSimulator
enumeration
Description
Apple mobile CPU architecture options for the Simulator.
Properties
Property
Description
X86_64
64-bit Intel/AMD simulator architecture.
ARM64
64-bit ARM simulator architecture.
Universal
All simulator architectures. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91479482c42a | unity_docs | rendering | What is `TextureFormat.RG16_SIGNED` in Unity? Explain its purpose and usage. | TextureFormat.RG16_SIGNED
Description
Two channel (RG) texture format, 8-bits signed integer per channel.
Import textures of this format in .DDS files.
Note that not all graphics cards support all texture formats, use
SystemInfo.SupportsTextureFormat
to check.
Additional resources:
Texture2D.format
,
texture as... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_34691ac8b0ef_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The teleport volume that will drive affordance states when its destination anchor belongs to thestate provider's originally bound interactable.
Signature:
```csharp
public TeleportationMultiAnchorVolume containingTeleportVolume
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_f37bc375b401 | unity_docs | scripting | Give me an overview of the `CubemapFace` class in Unity. | CubemapFace
enumeration
Description
Cubemap
face.
Used by
Cubemap.GetPixel
,
Cubemap.SetPixel
, and Cubemap.CopyPixel.
Properties
Property
Description
Unknown
Cubemap face is unknown or unspecified.
PositiveX
Right facing side (+x).
NegativeX
Left facing side (-x).
PositiveY
Upwards facing side (+y).
Ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd9a11c248a4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rigidbody2D.rotation`. | Rigidbody2D.rotation
public float
rotation
;
Description
The rotation of the rigidbody.
This is the rotation around the z-axis only.
```csharp
using UnityEngine;// Rotate rigidBody2D every frame. Start at 45 degrees.public class ExampleScript : MonoBehaviour
{
public Rigidbody2D rigidBody2D; void Start()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae9f36221069 | unity_docs | editor | What is `SerializedProperty.EqualContents` in Unity? Explain its purpose and usage. | SerializedProperty.EqualContents
Declaration
public static bool
EqualContents
(
SerializedProperty
x
,
SerializedProperty
y
);
Description
See if contained serialized properties are equal.
```csharp
using UnityEditor;
using UnityEngine;public class EqualContentsExample : ScriptableObject
{
public int m_A ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5aa5faaca20 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.ScrollViewScope`. | ScrollViewScope
class in
UnityEditor
Description
Disposable helper class for managing
BeginScrollView
/
EndScrollView
.
These work just like
ScrollViewScope
but feel more application-like and should be used in the editor
Label inside a scroll view.
```csharp
using UnityEngine;
using UnityEditor;// Simple E... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_acea15f88d9b | unity_docs | scripting | What is `Unity.Hierarchy.Hierarchy.GetChildrenCountRecursive` in Unity? Explain its purpose and usage. | Hierarchy.GetChildrenCountRecursive
Declaration
public int
GetChildrenCountRecursive
(ref
Unity.Hierarchy.HierarchyNode
node
);
Parameters
Parameter
Description
node
The hierarchy node.
Returns
int
The number of child nodes, including children of children.
Description
Gets the number of child node... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84195aa8a046 | unity_docs | scripting | What is `UIElements.Columns.Insert` in Unity? Explain its purpose and usage. | Columns.Insert
Declaration
public void
Insert
(int
index
,
UIElements.Column
column
);
Parameters
Parameter
Description
index
Index to insert to.
column
The column to insert.
Description
Inserts a column into the current instance at the specified index. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ceb15665634 | unity_docs | math | What is `IMGUI.Controls.PrimitiveBoundsHandle.SetSize` in Unity? Explain its purpose and usage. | PrimitiveBoundsHandle.SetSize
Declaration
protected void
SetSize
(
Vector3
size
);
Parameters
Parameter
Description
size
A
Vector3
specifying how large the bounding volume is along all of its axes.
Description
Sets the current size of the bounding volume for this instance.
A negative value along any ax... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a3583d7853d9 | unity_docs | rendering | Explain 'Toggle shader keywords in a script' in Unity. | Use a C# script to enable or disable keywords, and check whether a keyword has local or global scope.
## Toggle a keyword
To change the state of a keyword, use the Material API. For example,
Material.EnableKeyword()
.
## Toggle keywords in multiple shaders
By default, HLSL shader keywords have global scope. As a re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_993985525294 | unity_docs | scripting | What is `Terrain.heightmapPixelError` in Unity? Explain its purpose and usage. | Terrain.heightmapPixelError
public float
heightmapPixelError
;
Description
An approximation of how many pixels the terrain will pop in the worst case when switching lod.
A higher value reduces the number of polygons drawn.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Ter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1ba8e3585fc | unity_docs | rendering | What is `Experimental.GlobalIllumination.Lightmapping.ResetDelegate` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Lightmapping.ResetDelegate
Declaration
public static void
ResetDelegate
();
Description
Resets the light conversion delegate to Unity's default conversion function. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4237b378886 | unity_docs | math | What is `Rendering.RayTracingMeshInstanceConfig.mesh` in Unity? Explain its purpose and usage. | RayTracingMeshInstanceConfig.mesh
public
Mesh
mesh
;
Description
The
Mesh
to add to a
RayTracingAccelerationStructure
.
If the Mesh is destroyed then Unity automatically removes all ray tracing instances that were using the Mesh from the
RayTracingAccelerationStructure
.
Unity only ray traces triangle-bas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef6cd3e7c881 | unity_docs | ui | What is `EnumButtonsAttribute` in Unity? Explain its purpose and usage. | EnumButtonsAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Attribute to enable editing an enum with a
ToggleButtonGroup
.
```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
public enum Position
{
First,
Second... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9dc1ab5f8992 | unity_docs | rendering | Explain 'Play video on mobile platforms' in Unity. | ## iOS
Movie Textures are not supported on iOS. Instead, full-screen streaming playback is provided using
Handheld.PlayFullScreenMovie
.
Keep your videos inside the StreamingAssets folder located in the Assets folder of your project.
Unity iOS supports any movie file types that play correctly on an iOS device, implyin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c9cec031565 | unity_docs | rendering | What is `SpeedTreeImporter.useLightProbes` in Unity? Explain its purpose and usage. | SpeedTreeImporter.useLightProbes
public bool[]
useLightProbes
;
Description
Gets and sets an array of booleans to enable Light Probe lighting for each LOD.
Specify true for billboard LOD may break batching and lead to performance penalty.
This setting controls whether the SpeedTree materials use light probe re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89426bc04938 | unity_docs | rendering | What is `LineRenderer.widthCurve` in Unity? Explain its purpose and usage. | LineRenderer.widthCurve
public
AnimationCurve
widthCurve
;
Description
Set the curve describing the width of the line at various points along its length.
This property is multiplied by
LineRenderer.widthMultiplier
to get the final width of the line.
```csharp
using UnityEngine;
using System.Collections;[R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4eca935bcb3 | unity_docs | scripting | Show me a Unity C# example demonstrating `ScriptableObject.CreateInstance`. | riptableObject to create, as the name of the type.
type
The type of the ScriptableObject to create, as a System.Type instance.
Returns
ScriptableObject
The created ScriptableObject.
Description
Creates an instance of a scriptable object.
To easily create a ScriptableObject instance that is bound to a .asset ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_177533adb432 | unity_docs | audio | What is `Video.VideoAudioOutputMode.AudioSource` in Unity? Explain its purpose and usage. | VideoAudioOutputMode.AudioSource
Description
Send the embedded audio into a specified
AudioSource
.
You can add effects and filters to your audio, or alter the settings of the AudioSource to change how your video’s audio sounds. If you use this setting, you need to assign an AudioSource to your VideoPlayer. To ass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2936cbceb06d | unity_docs | rendering | What is `Rigidbody.angularVelocity` in Unity? Explain its purpose and usage. | Rigidbody.angularVelocity
public
Vector3
angularVelocity
;
Description
The angular velocity vector of the rigidbody measured in radians per second.
In most cases you should not modify it directly, as this can result in unrealistic behaviour. Note that if the Rigidbody has rotational constraints set, the corr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4da129e57bd0 | unity_docs | scripting | Give me an overview of the `ParticleSystemScalingMode` class in Unity. | ParticleSystemScalingMode
enumeration
Description
Control how particle systems apply transform scale.
Properties
Property
Description
Hierarchy
Scale the Particle System using the entire transform hierarchy.
Local
Scale the Particle System using only its own transform scale. (Ignores parent scale).
Shape
Only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d970d320b5ce | unity_docs | math | What is `Color32.LerpUnclamped` in Unity? Explain its purpose and usage. | Color32.LerpUnclamped
Declaration
public static
Color32
LerpUnclamped
(
Color32
a
,
Color32
b
,
float
t
);
Description
Linearly interpolates between colors
a
and
b
by
t
.
When
t
is 0 returns
a
. When
t
is 1 returns
b
.
Additional resources:
Lerp
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_30d2608cd362 | unity_docs | physics | What is `PhysicsVisualizationSettings.centerOfMassUseScreenSize` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.centerOfMassUseScreenSize
public static bool
centerOfMassUseScreenSize
;
Description
Whether or not the center of mass visualization should be constant screen space size.
If you set the property to false, Unity draws the center of mass visualization in world space. If you set the pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eea2ece6d693 | unity_docs | rendering | In Unity's '6 Sided Skybox Shader Material Inspector Window reference', what is 'Properties' and how does it work? | Property Description Tint Color
The color to tint the skybox to. Unity adds this color to the Textures to change their appearance without altering the base Texture files.
Exposure
Adjusts the skybox’s exposure. This allows you to correct tonal values in the skybox Textures. Larger values produce a more exposed, seeming... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fdea992bfd15 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchIndexer.documentCount`. | SearchIndexer.documentCount
public int
documentCount
;
Description
Returns the number of documents in the index.
```csharp
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static class Example_SearchIndexer_documentCount
{
[MenuItem("Examples/SearchIndexer/documentCount")]
public static void R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cc1a8513fb28 | unity_docs | physics | Explain 'Version Control' in Unity. | You can use Unity in conjunction with most common version control tools, including Perforce and
Unity Version Control
.
To access the Version Control settings, go to
Edit
>
Project Settings
then select the
Version Control
category.
Property Description Mode
Select the version control mode.
Hidden meta files
Hide the .m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6d5fd28fad8 | unity_docs | animation | What is `WrapMode.Once` in Unity? Explain its purpose and usage. | WrapMode.Once
Description
When time reaches the end of the animation clip, the clip will automatically stop playing and time will be reset to beginning of the clip.
Note that when playing backwards and when the time reaches the beginning the clip will automatically stop playing, but the time won't be
reset to the e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c437d92debe8 | github | scripting | Write a Unity Editor script for Quiz Button Editor | ```csharp
using UnityEngine;
using UnityEditor;
using ExPresSXR.Interaction.ButtonQuiz;
namespace ExPresSXR.Editor.Editors
{
[CustomEditor(typeof(QuizButton))]
[CanEditMultipleObjects]
public class QuizButtonEditor : BaseButtonEditor
{
QuizButton quizButton;
protected override void On... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_b0ff85dc463f | unity_docs | input | What is `UIElements.ScrollView` in Unity? Explain its purpose and usage. | ScrollView
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.VisualElement
/
Implemented in:
UnityEngine.UIElementsModule
Description
Displays its contents inside a scrollable frame. For more information, see
ScrollView
.
Static Properties
Property
Description
contentAndVerticalScrollUssClass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0d737a92d6a4 | unity_docs | scripting | Explain 'Introduction to the camera view' in Unity. | What a camera sees is defined by its transform and its camera component. The transform position defines the viewpoint, its forward (Z) axis points in the view direction, its upward (Y) axis points toward the top of the screen, and its rightward (X) axis points toward the right side of the screen. Settings on the camera... | 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.