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_e0d4db4756a1 | unity_docs | scripting | What is `UIElements.IMGUIEvent.GetPooled` in Unity? Explain its purpose and usage. | IMGUIEvent.GetPooled
Declaration
public static
UIElements.IMGUIEvent
GetPooled
(
Event
systemEvent
);
Parameters
Parameter
Description
systemEvent
The IMGUI event used to initialize the event.
Returns
IMGUIEvent
An initialized event.
Description
Gets an event from the event pool and initializes i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_05e9841ac3fa | unity_docs | physics | What is `ColliderDistance2D.pointA` in Unity? Explain its purpose and usage. | ColliderDistance2D.pointA
public
Vector2
pointA
;
Description
A point on a
Collider2D
that is a specific
distance
away from
pointB
.
This point lies on the exterior surface of a
Collider2D
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_434ff606e864 | unity_docs | physics | What is `ShortcutManagement.ClutchShortcutAttribute` in Unity? Explain its purpose and usage. | ClutchShortcutAttribute
class in
UnityEditor.ShortcutManagement
/
Inherits from:
ShortcutManagement.ShortcutAttribute
Description
Registers a static method as the action for a clutch shortcut.
A clutch shortcut is triggered when the user presses the key binding for the shortcut and also when the user releases t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2fea1d16726e | unity_docs | scripting | What is `UIElements.SliceType` in Unity? Explain its purpose and usage. | SliceType
enumeration
Description
The slice type determines whether the center of the image is scaled or tiled.
Properties
Property
Description
Sliced
Fill the slices by stretching the center and sides.
Tiled
Fill the slices by tiling the center and sides.
Image must be imported as a Sprite (2D and U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c085f85887e0 | unity_docs | scripting | What is `Windows.Directory.Delete` in Unity? Explain its purpose and usage. | Directory.Delete
Declaration
public static void
Delete
(string
path
);
Parameters
Parameter
Description
path
The name of the directory to remove.
Description
Deletes a directory from a specified path.
Note:
This method is only available on the Universal Windows Platform. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1fc7fa88b70 | unity_docs | physics | What is `Rendering.RenderingThreadingMode.NativeGraphicsJobs` in Unity? Explain its purpose and usage. | RenderingThreadingMode.NativeGraphicsJobs
Description
Main thread generates intermediate graphics commands. Render thread converts them into low-level platform API graphics commands. Render thread can also dispatch graphics jobs to several worker threads.
In this mode, the main thread processes the application's hi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4610c4afb9cf | github | scripting | Write a Unity C# ScriptableObject for Readme | ```csharp
using System;
using UnityEngine;
public class Readme : ScriptableObject {
public Texture2D icon;
public string title;
public Section[] sections;
public bool loadedLayout;
[Serializable]
public class Section {
public string heading, text, linkText, url;
}
}
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_57472e22bac4 | unity_docs | rendering | What is `Experimental.GlobalIllumination.FalloffType.Linear` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
FalloffType.Linear
Description
Linear falloff model.
This is not physically based. It is a linear falloff within the light range. It is normalised to the light range, which causes the shaded light intensity to depend on the rang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_87bd22441be3 | unity_docs | rendering | Explain 'Reducing shader variants' in Unity. | Strategies for reducing shader variants to optimize builds and performance.
Page Description Introduction to shader variants
Understand how Unity compiles shaders into multiple shader variants.
Check how many shader variants you have
Use the shader logging and profiling tools in Unity.
Strip shader variants
Prevent Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2dbcb320156e | unity_docs | rendering | Explain 'Particle movement' in Unity. | Resources for configuring particle movement.
Topic Description Particle movement patterns
Understand how the Noise module adds turbulence to particle movement.
Particle velocity
Understand how velocity-based
Particle System
modules can calculate and control particle velocity.
Create particles that change velocity over ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c75e1f3646f5 | unity_docs | editor | What is `EditorUtility.ClearProgressBar` in Unity? Explain its purpose and usage. | EditorUtility.ClearProgressBar
Declaration
public static void
ClearProgressBar
();
Description
Removes the progress bar.
Removes progress bars displayed using
EditorUtility.DisplayProgressBar
or
EditorUtility.DisplayCancelableProgressBar
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7d9f655b177 | unity_docs | math | What is `Mathf.RoundToInt` in Unity? Explain its purpose and usage. | Mathf.RoundToInt
Declaration
public static int
RoundToInt
(float
f
);
Description
Returns
f
rounded to the nearest integer.
If the number ends in .5 so it is halfway between two integers, one of which is even and the other odd, the even number is returned.
```csharp
using UnityEngine;public class ExampleSc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6d7d8456ccfd | github | scripting | Write a Unity C# XR/VR script for Environment Interaction Manager | ```csharp
using System.Collections;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.XR.Interaction.Toolkit;
public class EnvironmentInteractionManager : MonoBehaviour
{
[SerializeField] private float force = 500.0f;
[SerializeField] private float destroyAfter = 10.0f;
[Seri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5f2022f7753 | unity_docs | physics | What is `Sprite.GetPhysicsShapeCount` in Unity? Explain its purpose and usage. | Sprite.GetPhysicsShapeCount
Declaration
public int
GetPhysicsShapeCount
();
Returns
int
The number of physics shapes for the Sprite.
Description
The number of physics shapes for the Sprite.
A
physics shape
is a cyclic sequence of line segments between points that define the outline of the Sprite used f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1a44a82f564 | unity_docs | math | What is `Rect.position` in Unity? Explain its purpose and usage. | Rect.position
public
Vector2
position
;
Description
The X and Y position of the rectangle.
This is the same as
min
, except that setting it will move the rectangle rather than resize it.
```csharp
using UnityEngine;// Show Rect, the position selected randomly.public class RectExample : MonoBehaviour
{
priv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_243295f417e0 | unity_docs | math | What is `Mesh.MeshData.GetNormals` in Unity? Explain its purpose and usage. | Mesh.MeshData.GetNormals
Declaration
public void
GetNormals
(NativeArray<Vector3>
outNormals
);
Parameters
Parameter
Description
outNormals
The destination vertex normals array.
Description
Populates an array with the vertex normals from the
MeshData
.
The destination array must have at least
vertexCou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f79aef04a9d | unity_docs | scripting | What are the parameters of `LightTransport.RadeonRaysContext.ReadBuffer` in Unity? | Description Read contents of a buffer from the context. The memory that the BufferSlice<T0> points to can be transferred into a NativeArray<T0> . This is an asynchronous operation. Pass an EventID created with IDeviceContext.CreateEvent to track the completion status, if desired. This method returns immediately after e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1ff953dcfe0 | unity_docs | math | What is `ArticulationBody.anchorPosition` in Unity? Explain its purpose and usage. | ArticulationBody.anchorPosition
public
Vector3
anchorPosition
;
Description
Position of the anchor relative to this body.
Defined in this body's space.
Unit of measurement - meters (m, m, m). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da0d02150865 | unity_docs | scripting | What are the parameters of `GameObject.ctor` in Unity? | Description Creates a new GameObject, with optional parameters to specify a name and set of components to attach. Use the constructor with no arguments to create a GameObject with an empty name property and only a Transform component attached. Use the constructor with name parameter to create a GameObject with the spec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45a94dafc8bc | unity_docs | scripting | Show me a Unity C# example demonstrating `LowLevel.PlayerLoopSystem`. | that update as part of the parent system.
The default loop consists of Unity's built-in native systems such as Input and Audio, but you can add new custom systems to the Player loop by using
PlayerLoop.SetPlayerLoop
in your C# code. Native systems can only be retrieved by calling
PlayerLoop.GetDefaultPlayerLoop
, an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_714672a2ffe6 | unity_docs | scripting | What is `Rendering.StencilState.zFailOperationBack` in Unity? Explain its purpose and usage. | StencilState.zFailOperationBack
public
Rendering.StencilOp
zFailOperationBack
;
Description
What to do with the contents of the buffer if the stencil test passes, but the depth test fails for back-facing geometry. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6ef6ca1df5d | unity_docs | math | What is `GL.modelview` in Unity? Explain its purpose and usage. | GL.modelview
public static
Matrix4x4
modelview
;
Description
Gets or sets the modelview matrix.
The getter returns the product of the model and view matrices. The setter assigns an
identity to the model matrix and the provided matrix to the view matrix.
Changing the model, view or projection matrices override... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abc5dbc52039 | unity_docs | rendering | What is `TextureImporter.wrapModeV` in Unity? Explain its purpose and usage. | TextureImporter.wrapModeV
public
TextureWrapMode
wrapModeV
;
Description
Texture V coordinate wrapping mode.
Controls wrapping mode along texture V (vertical) axis.
Additional resources:
Texture.wrapModeV
,
wrapMode
,
texture assets
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5f4ad62a9523 | unity_docs | physics | In Unity's 'Uses of layers in Unity', what is 'Ray cast with layers' and how does it work? | You can use layers to specify which GameObjects that a ray cast can intersect with. To make a ray cast ignore a GameObject , you can assign it to the Ignore Raycast layer, or pass a LayerMask to the ray cast API call.
If you don’t pass a LayerMask to the ray cast API call, Unity uses
Physics.DefaultRaycastLayers
which ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecdf53fe0317 | unity_docs | scripting | What is `Experimental.GraphView.GraphViewMinimapWindow.OnGraphViewChanging` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewMinimapWindow.OnGraphViewChanging
Declaration
protected void
OnGraphViewChanging
();
Description
Callback invoked when the GraphView is about to change. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dc0425f8157a | unity_docs | rendering | In Unity's 'Android', what is 'Additional resources and examples' and how does it work? | 📖
E-Book
:
Optimize your game performance for mobile, XR, and Web in Unity
📖
E-Book
:
Introduction to the Universal Render Pipeline for advanced Unity creators
📖
E-Book
:
Create popular shaders and visual effects with the Universal Render Pipeline
📖
E-Book
:
Ultimate guide to profiling Unity games
📝
How-to guide
:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_88909277323e | unity_docs | physics | In Unity's 'UnityYAML', what is 'Example of indentation on multi-line plain scalars:' and how does it work? | ```
parent: This is a
multi-line scalar
^
|
```
If there is no indentation, the scalar returns
This is a
and might trigger an Asset into further parsing. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b81231fef83e | github | scripting | Write a Unity C# script called Observable Pointer Up Trigger | ```csharp
// for uGUI(from 4.6)
#if !(UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5)
using System; // require keep for Windows Universal App
using UnityEngine;
using UnityEngine.EventSystems;
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
public class ObservablePointerUpT... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_d4c3407e08db | unity_docs | rendering | What is `LightmapParameters.GetLightmapParametersForLightingSettings` in Unity? Explain its purpose and usage. | LightmapParameters.GetLightmapParametersForLightingSettings
Declaration
public static
LightmapParameters
GetLightmapParametersForLightingSettings
(
LightingSettings
lightingSettings
);
Description
Returns the assigned
LightmapParameters
for the specified
LightingSettings
.
Additional resources:
Lightma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f0bd9115d65a | unity_docs | performance | In Unity's 'Configure vertex compression', what is 'Prepare the mesh for vertex compression' and how does it work? | The mesh must meet the following requirements to use vertex compression:
The mesh must have its
Read/Write Enabled
property disabled. You can change this property in the Model tab of the Model Import Settings window.
The mesh must not be a skinned mesh.
The target platform must support FP16 values.
The model that conta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cef2184a5db9 | unity_docs | scripting | What is `UIElements.EventBase.StopPropagation` in Unity? Explain its purpose and usage. | EventBase.StopPropagation
Declaration
public void
StopPropagation
();
Description
Stops propagating this event. The event is not sent to other elements along the propagation path.
This method does not prevent other event handlers from executing on the current target.
If this method is called during the Trickl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8859425616ec | unity_docs | scripting | What are the parameters of `PrefabUtility.IsDefaultOverride` in Unity? | Returns bool True if the property is a default override. Description Returns true if the given modification is considered a default override . Certain properties on the root GameObject of a Prefab instance are considered default overrides. These are overridden by default and are usually rarely applied or reverted. Most... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aa3bbaa918a3 | unity_docs | scripting | In Unity's 'Bind ListView to a list with runtime binding', what is 'Create an object with a list' and how does it work? | Create the data structure that holds your list items.
Create a Unity project with any template.
In your
Project window
, create a C# script named
GameSwitchListAsset.cs
with the following contents:
```csharp
using System;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
[CreateAssetMenu(... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9b10e1a0f4a | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.RemoveAssetTagFromDefaultInstall` in Unity? | Description Removes the asset tag from the list of tags to download during initial installation. The function does nothing if the tag isn't already configured for downloading during initial installation. ```csharp
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b010b9845926 | unity_docs | scripting | What is `Playables.PlayableAsset.CreatePlayable` in Unity? Explain its purpose and usage. | PlayableAsset.CreatePlayable
Declaration
public
Playables.Playable
CreatePlayable
(
Playables.PlayableGraph
graph
,
GameObject
owner
);
Parameters
Parameter
Description
graph
The graph to inject playables into.
owner
The game object which initiated the build.
Returns
Playable
The playable injecte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73ef227d80e2 | unity_docs | scripting | What is `Experimental.GraphView.EdgeDragHelper.draggedPort` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeDragHelper.draggedPort
public
Experimental.GraphView.Port
draggedPort
;
Description
The port the edge is being dragged from. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f6914d659f0b | unity_docs | scripting | In Unity's 'Integrating Unity into native iOS applications', what is 'How it works' and how does it work? | To use Unity as a Library for iOS, first build your Xcode project as usual from Unity. For more information, refer to
Build an iOS application
.
Every Unity iOS Xcode project has the following
structure
:
A library part in the UnityFramework target that includes the source,
plug-ins
, and dependent frameworks. It also ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7db256eed0d | unity_docs | scripting | Show me a Unity C# example demonstrating `Assertions.Assert.AreEqual`. | escription
expected
The assumed
Assert
value.
actual
The exact
Assert
value.
message
The string used to describe the
Assert
.
comparer
Method to compare
expected
and
actual
arguments have the same value.
Description
Assert that the values are equal.
Show message when the
expected
and
actual
are ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7ac5d4f88f8 | unity_docs | scripting | What is `WaitForSecondsRealtime.ctor` in Unity? Explain its purpose and usage. | WaitForSecondsRealtime Constructor
Declaration
public
WaitForSecondsRealtime
(float
time
);
Description
Creates a yield instruction to wait for a given number of seconds using unscaled time.
```csharp
using UnityEngine;
using System.Collections;public class WaitForSecondsExample : MonoBehaviour
{
void Start()... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47f5e096df69 | unity_docs | scripting | Show me a Unity C# example demonstrating `Graphics.CopyTexture`. | mipmap limit settings.
When the global texture mipmap limit is 2, the source is a texture subject to it, and the destination is a texture not subject to it, Unity adjusts the source rectangle to 32x32 and its offset to 4,4, but doesn't change the destination offset, which remains 32x32.
The following sample shows how... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97223391de81 | unity_docs | math | Give me an overview of the `Compass` class in Unity. | Compass
class in
UnityEngine
/
Implemented in:
UnityEngine.InputLegacyModule
Description
Interface into compass functionality.
Properties
Property
Description
enabled
Use to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable loc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3727fc949900 | unity_docs | editor | What is `Search.SearchProvider.fetchPreview` in Unity? Explain its purpose and usage. | SearchProvider.fetchPreview
public Func<SearchItem,SearchContext,Vector2,FetchPreviewOptions,Texture2D>
fetchPreview
;
Description
Similar to fetchThumbnail, fetchPreview usually returns a bigger preview. The Search UI will progressively show one preview each frame, preventing the UI from blocking if many previe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2f63c9d92ae | unity_docs | xr | What is `Android.Permission.CoarseLocation` in Unity? Explain its purpose and usage. | Permission.CoarseLocation
public static string
CoarseLocation
;
Description
Used when requesting permission or checking if permission has been granted to use the users location with coarse granularity. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0da0e3db38ad | unity_docs | rendering | In Unity's 'Web performance considerations', what is 'Collect performance data with the Profiler' and how does it work? | You can use the Profiler in the Web platform, but you can’t attach to a running player built with Web through the Unity Editor. This is because the WebGL API uses WebSockets for communication, which doesn’t allow for incoming connections on the browser side. To connect your application to the Profiler, refer to
Collect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3e5ff2fbb3dc | unity_docs | physics | What are the parameters of `Search.SearchIndexer.LoadBytes` in Unity? | Returns bool Returns false if the index is of an unsupported version or if there was a problem initializing the reading thread. Description Loads the index asynchronously (in another thread) from a binary buffer. ```csharp
using System.IO;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static class Ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4311d49fcae1 | unity_docs | rendering | Show me a Unity C# example demonstrating `Mesh.uv`. | or Vector4 value if you need to.
This property returns a copy of the data. This means that it causes a heap memory allocation. It also means that to make changes to the original data, you must update the copy and then reassign the updated copy to the mesh.
The following example demonstrates how to create an array to ho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ed1347f33f0 | unity_docs | editor | Show me a Unity C# example demonstrating `ShortcutManagement.ShortcutManager.UnregisterContext`. | 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_cd0032360757 | unity_docs | rendering | In Unity's 'Remove unused resources from your Web build', what is 'Remove unused shader variants' and how does it work? | Enable shader stripping to remove shader variants that aren’t used in a
scene
. Shader stripping can reduce your build file size.
Important
: Test your application to make sure your unused shaders aren’t referenced by other shaders.
To enable shader stripping, refer to
Graphics
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cea1583f899 | unity_docs | physics | What is `Rendering.ScriptableRenderContext.InvokeOnRenderObjectCallback` in Unity? Explain its purpose and usage. | ScriptableRenderContext.InvokeOnRenderObjectCallback
Declaration
public void
InvokeOnRenderObjectCallback
();
Description
Schedules an invocation of the OnRenderObject callback for MonoBehaviour scripts.
This method triggers
MonoBehaviour.OnRenderObject
. Call this function to issue the OnRenderObject callback... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d60e2b15fc84 | unity_docs | editor | What is `Application.buildGUID` in Unity? Explain its purpose and usage. | Application.buildGUID
public static string
buildGUID
;
Description
Returns a GUID for this build (Read Only).
Each build of a project generates unique GUIDs.
Note
: In the Editor, this property returns an empty string. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f75603ac7153 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R8G8B8_SRGB` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R8G8B8_SRGB
Description
A three-component, 24-bit unsigned normalized format that has an 8-bit R component stored with sRGB nonlinear encoding in byte 0, an 8-bit G component stored with sRGB nonlinear encoding in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_316b17a6f312 | unity_docs | networking | What is `Android.AndroidConfiguration.orientation` in Unity? Explain its purpose and usage. | AndroidConfiguration.orientation
public
Android.AndroidOrientation
orientation
;
Description
Mirrors the Android property
orientation
.
For information about this property, refer to the Android developer documentation on
orientation
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_499a3f20a3ea | unity_docs | math | What is `SerializedProperty.boundsIntValue` in Unity? Explain its purpose and usage. | SerializedProperty.boundsIntValue
public
BoundsInt
boundsIntValue
;
Description
Value of bounds with integer values property.
Additional resources:
propertyType
,
SerializedPropertyType.BoundsInt
,
BoundsInt
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_31a32c88a4e6 | github | scripting | Write a Unity C# script called Scene Controller | ```csharp
using Solid.Attributes;
using Solid.Core;
using Solid.UI;
using UnityEngine;
/*Copyright (c) Created by Oleksii Volovich 2021*/
namespace Solid.SceneManagement
{
[SceneName("your scene name in build settings")]
public abstract class SceneController : SolidBehaviour
{
[SerializeField] pro... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_afda36281136 | unity_docs | rendering | Explain 'Baking lightmaps before runtime' in Unity. | Resources for precalculating the lit colors of GameObjects and storing them in textures called
lightmaps
.
Page Description Lightmaps and baking
Learn about precalculating the color and brightness of surfaces in a scene , then storing the result in a texture called a lightmap for later use.
Set up your scene and lights... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a70fa461601e | unity_docs | animation | Explain 'Vary Particle System properties over time' in Unity. | Many of the numeric properties of particles or even the whole Particle System can vary over time. Unity provides several different methods of specifying how this variation happens:
Constant:
The property’s value is fixed throughout its lifetime.
Curve:
The value is specified by a curve/graph.
Random Between Two Constan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a124f1eff0cf | unity_docs | rendering | What is `TextureFormat.R16` in Unity? Explain its purpose and usage. | TextureFormat.R16
Description
Single channel (R) texture format, 16-bits unsigned integer.
Note that not all graphics cards support all texture formats, use
SystemInfo.SupportsTextureFormat
to check.
Additional resources:
Texture2D.format
,
texture assets
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08b089deef70 | unity_docs | scripting | What is `AssetBundle.UnloadAllAssetBundles` in Unity? Explain its purpose and usage. | AssetBundle.UnloadAllAssetBundles
Declaration
public static void
UnloadAllAssetBundles
(bool
unloadAllObjects
);
Parameters
Parameter
Description
unloadAllObjects
Determines whether the current instances of objects loaded from AssetBundles will also be unloaded.
Description
Unloads all currently loaded Ass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_98e678430566 | unity_docs | xr | Show me a Unity code example for 'Search for packages'. | The Packages search provider finds packages in your project and in the Unity Registry.
## Query syntax
Provider token:
pkg:
Note:
You can’t implicitly use this search provider
as part of a default search
. You must explicitly use its search token or its
visual query
filter.
Query example: Searches the Package Manager... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c6bdc088b777 | unity_docs | scripting | Show me a Unity code example for 'Target Matching'. | imation clip at which the character is beginning to get off the ground. In this case, it is 14.1% or 0.141 into the animation clip in normalized time:
You also need to find the place in the animation clip where the character is about to land on its feet, which in this case is at 78.0% or 0.78.
With this information, yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d60fce3e8495 | unity_docs | editor | What is `Unity.CodeEditor.CodeEditor.GetCodeEditorForPath` in Unity? Explain its purpose and usage. | CodeEditor.GetCodeEditorForPath
Declaration
public
Unity.CodeEditor.IExternalCodeEditor
GetCodeEditorForPath
(string
editorPath
);
Parameters
Parameter
Description
editorPath
The absolute path to an executable.
Returns
IExternalCodeEditor
Returns an
IExternalCodeEditor
representing the package respon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3710933a9292 | unity_docs | editor | What are the parameters of `Callbacks.RunAfterAssemblyAttribute.ctor` in Unity? | Description Add this attribute to a callback method to mark that this callback must be run after any callbacks that are part of the specified assembly. To define dependencies for a callback, use the following attributes: RunAfterClassAttribute , RunBeforeClassAttribute RunAfterAssemblyAttribute , RunBeforeAssemblyAttri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e470b6761d9b | unity_docs | scripting | What is `UIElements.Experimental.PointerOutLinkTagEvent.Init` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PointerOutLinkTagEvent.Init
Declaration
protected void
Init
();
Description
Resets the event members to their initial values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d97b9bf90a36 | unity_docs | scripting | What is `Experimental.GraphView.GridBackground.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GridBackground Constructor
Declaration
public
GridBackground
();
Description
GridBackground's constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f336e2009f65 | unity_docs | editor | Explain 'Simulated classes' in Unity. | The Device Simulator provides simulated classes, which you can use to test code that responds to device-specific behaviors in the Device Simulator.
The following simulated classes are in the UnityEngine.Device namespace:
Application Screen SystemInfo
These simulated classes have the same members as their regular UnityE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3aad04e0b635 | unity_docs | editor | What is `Profiling.ProfilerEditorUtility` in Unity? Explain its purpose and usage. | ProfilerEditorUtility
class in
UnityEditor.Profiling
Description
A Utility class for Profiler tooling in the Unity Editor.
Static Methods
Method
Description
SetSelection
Set the current selection in a frame time sample based Profiler Module, such as the CPU Usage module and the GPU Usage Profiler module. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bb3e82be721 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.DeleteElements` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.DeleteElements
Declaration
public void
DeleteElements
(IEnumerable<GraphElement>
elementsToRemove
);
Parameters
Parameter
Description
elementsToRemove
Elements to remove.
Description
Remove elements from the g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e62d07f98bad | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.marginLeft` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.marginLeft
public float
marginLeft
;
Description
Space reserved for the left edge of the margin during the layout phase. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfe745e51cbf | unity_docs | editor | Show me a Unity C# example demonstrating `GameObjectUtility.SetStaticEditorFlags`. | ermine which Unity systems consider a GameObject as static, and include the GameObject in their precomputations in the Unity Editor. Setting StaticEditorFlags at runtime has no effect on these systems.
For more information, see the
Unity Manual documentation on Static Editor Flags
.
The code in this example enables t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1d6a05033ba | unity_docs | rendering | What is `LightmapData.shadowMask` in Unity? Explain its purpose and usage. | LightmapData.shadowMask
public
Texture2D
shadowMask
;
Description
Texture storing occlusion mask per light (ShadowMask, up to four lights).
Additional resources:
LightmapSettings
class,
Renderer.lightmapIndex
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0aa546a140b | unity_docs | scripting | What is `Diagnostics.Utils.NativeError` in Unity? Explain its purpose and usage. | Utils.NativeError
Declaration
public static void
NativeError
(string
message
);
Description
Manually causes a native error that outputs the specified message to the log and registers an error. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7de9a3fb2a0b | unity_docs | rendering | What is `SceneManagement.SceneCullingMasks` in Unity? Explain its purpose and usage. | SceneCullingMasks
class in
UnityEditor.SceneManagement
Description
Masks that control what kind of Scene views and Game views Unity should render a GameObject in.
You can set masks on Scenes via
EditorSceneManager.SetSceneCullingMask
and on render batches via
BatchRendererGroup.AddBatch
.
Static Properties
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5e7740b0927 | unity_docs | physics | What is `Rigidbody.detectCollisions` in Unity? Explain its purpose and usage. | Rigidbody.detectCollisions
public bool
detectCollisions
;
Description
Should collision detection be enabled? (By default always enabled).
Disabling collision detections is useful when you have a ragdoll which is setup to be kinematic and you want to avoid
heavy collision detection calculations on that rigidbod... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d85266251d0f | unity_docs | math | What is `ArrayUtility.FindIndex` in Unity? Explain its purpose and usage. | ArrayUtility.FindIndex
Declaration
public static int
FindIndex
(T[]
array
,
Predicate<T>
match
);
Returns
int
The zero-based index of the first occurrence of the element, if found; otherwise, �1.
Description
Find the index of the first element that satisfies the predicate. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_655c77a4332f | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.CullMode`. | CullMode
enumeration
Description
Determines which faces Unity culls.
The following example shows how to use this enum to set the culling mode of a GameObject from a C# script.
Use the following code in your shader to declare the
_Cull
property that you can change from a C# script:
```
Shader "Example/SetCullMo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f2f4fa31c2d9 | unity_docs | scripting | Show me a Unity code example for 'Inspector-configurable custom events'. | e type of
UnityEvent
. For example, if you have a
UnityEvent<string>
, the function selector lists any functions that accept a string parameter under the
Dynamic string
header.
## Generic support in UnityEvent
By default a UnityEvent in a Monobehaviour binds dynamically to a void function. But you can create a UnityE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6aa5bb79776 | unity_docs | animation | What is `UIElements.Experimental.ValueAnimation_1.onAnimationCompleted` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ValueAnimation<T0>.onAnimationCompleted
public
Unity.Android.Gradle.Manifest.Action
onAnimationCompleted
;
Description
Callback invoked when this animation has completed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_394e98b23f2c | unity_docs | rendering | Explain 'Structure UI examples' in Unity. | The best way to learn how to structure UI is to try examples. The following examples demonstrate how to use built-in controls, and create and use custom controls in your UI.
## Layout
Topics Description Relative and absolute positioning C# example
Use relative and absolute positioning to lay out UI in C#.
## List an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7fe1fc6816c1 | github | scripting | Write a Unity C# script called Plain Material | ```csharp
using UnityEngine;
using System.Collections;
namespace PlainSaveLoad
{
/// <summary>
/// Example of a "Plain" version of a Unity component. In this case, Material is simply converted
/// to its plain version by loading it by its material name and folder.
/// </summary>
public class Plain... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29d8a0e7b896 | unity_docs | editor | What is `Editor.UseDefaultMargins` in Unity? Explain its purpose and usage. | Editor.UseDefaultMargins
Declaration
public bool
UseDefaultMargins
();
Description
Override this method in subclasses to return false if you don't want default margins.
By default, content in the Inspector has a large left margin and a small right margin. This is because the entire
Editor.OnInspectorGUI
callb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfc96abc56dc | unity_docs | scripting | Give me an overview of the `TextAreaAttribute` class in Unity. | TextAreaAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Attribute to make a string be edited with a height-flexible and scrollable text area.
You can specify the minimum and maximum lines for the TextArea, and the field will expand accordi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_670280ba2d43 | unity_docs | editor | What is `PrefabUtility.RecordPrefabInstancePropertyModifications` in Unity? Explain its purpose and usage. | PrefabUtility.RecordPrefabInstancePropertyModifications
Declaration
public static void
RecordPrefabInstancePropertyModifications
(
Object
targetObject
);
Parameters
Parameter
Description
targetObject
Object to process.
Description
Causes modifications made to the Prefab instance to be recorded.
The recom... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f491b89427e9 | unity_docs | animation | What is `Animations.ScaleConstraint.scalingAxis` in Unity? Explain its purpose and usage. | ScaleConstraint.scalingAxis
public
Animations.Axis
scalingAxis
;
Description
The axes affected by the ScaleConstraint.
Use this property to restrict the effect of the constraint on a particular axis.
```csharp
using UnityEngine.Animations;public class ConstraintAxis
{
public void ConstrainOnlyOnXY(ScaleCons... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_96e8be849e70 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.TextField`. | t.MaxWidth
,
GUILayout.MinHeight
,
GUILayout.MaxHeight
,
GUILayout.ExpandWidth
,
GUILayout.ExpandHeight
.
Returns
string
The text entered by the user.
Description
Make a text field.
This works just like
GUILayout.TextField
, but correctly responds to select all, copy, paste etc. in the editor,
and it can ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_289b4defdc18 | unity_docs | ui | What is `GUIStyle.alignment` in Unity? Explain its purpose and usage. | GUIStyle.alignment
public
TextAnchor
alignment
;
Description
Text alignment.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Prints how text alignment is set. void OnGUI()
{
Debug.Log(GUI.skin.button.alignment);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1eecd1260a98 | unity_docs | editor | What is `Profiling.FrameDataView.GetCounterValueAsFloat` in Unity? Explain its purpose and usage. | FrameDataView.GetCounterValueAsFloat
Declaration
public float
GetCounterValueAsFloat
(int
markerId
);
Parameters
Parameter
Description
markerId
Marker identifier.
Returns
float
Returns the counter value as
float
.
Description
Gets the last value of a counter marker in the frame as a float data type'... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8d76dca44dc1 | unity_docs | rendering | What is `Texture3D.ctor` in Unity? Explain its purpose and usage. | Texture3D Constructor
Declaration
public
Texture3D
(int
width
,
int
height
,
int
depth
,
TextureFormat
textureFormat
,
bool
mipChain
,
bool
createUninitialized
= false);
Declaration
public
Texture3D
(int
width
,
int
height
,
int
depth
,
TextureFormat
textureFormat
,
bool
mipChain
,
IntPtr
nativ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_faaa4ee2112b | unity_docs | rendering | What is `Texture2D.minimumMipmapLevel` in Unity? Explain its purpose and usage. | Texture2D.minimumMipmapLevel
public int
minimumMipmapLevel
;
Description
Restricts the mipmap streaming system to a minimum mip level for this Texture.
When this field is not set, the mipmap streaming system selects which mipmap to load based on the position of all Cameras. Setting this field limits the loaded ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b8e3370d1f5 | unity_docs | scripting | Explain 'Scripting Root Motion' in Unity. | Sometimes your animation comes as “in-place”, which means if you put it in a scene , it will not move the character that it’s on. In other words, the animation does not contain “
root motion
”. For this, you can modify root motion from a script. To put everything together follow the steps below (note there are many var... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ddf419445ff | unity_docs | editor | What is `Build.Content.ExternalFileReference.guid` in Unity? Explain its purpose and usage. | ExternalFileReference.guid
public GUID
guid
;
Description
A GUID that represents the file being referenced. This GUID might be used to locate default editor resources, but generally pathName is used to identify externally referenced files. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2276f306ba47 | unity_docs | rendering | What is `UIElements.ImmediateModeElement.ImmediateRepaint` in Unity? Explain its purpose and usage. | ImmediateModeElement.ImmediateRepaint
Declaration
protected void
ImmediateRepaint
();
Description
Invoked during the repaint phase.
Here it is safe to use any rendering calls using the immediate Graphics api,
eg: Graphics.DrawTexture(contentRect, image); Graphics.DrawMesh, etc
The current transform matrix... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0219cdc3656c | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.BufferID`. | CPU memory, GPU memory, or unified memory, depending on the implementation.
The BufferID abstracts the underlying memory management details and provides a unified interface for:
Cross-platform memory allocation.
Memory lifetime management.
Type-safe buffer operations through BufferSlice.
BufferIDs must be explici... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1decee6b006b | unity_docs | ui | What is `CursorLockMode.None` in Unity? Explain its purpose and usage. | CursorLockMode.None
Description
Cursor behavior is unmodified.
```csharp
//This script makes Buttons that control the Cursor's lock state. Note that the Confined mode only works on Windows and Linux Standalone platform build.using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Press the spa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c90ca9bc2c31 | unity_docs | editor | In Unity's 'Model file formats reference', what is 'Proprietary file formats' and how does it work? | Don’t use proprietary file formats in production and export to the.fbx
format wherever possible. If you need to include these files as part of your project, then Unity can import proprietary files from the following 3D modeling software, and then convert them into.fbx
files:
Autodesk Maya Blender Modo Cheetah3D For mor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_644057b53a49 | unity_docs | scripting | What is `Search.SearchContext.IsEnabled` in Unity? Explain its purpose and usage. | SearchContext.IsEnabled
Declaration
public bool
IsEnabled
(string
providerId
);
Parameters
Parameter
Description
providerId
ID of the search provider. See SearchProvider.name.id.
Returns
bool
Returns true if the search provider is enabled for this SearchContext.
Description
Checks if a search provide... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f2e5fbe4e796 | github | scripting | Write a Unity C# UI script for Android FPS Counter | ```csharp
using System.Collections;
using UnityEngine;
namespace Lynx
{
public class AndroidFPSCounter : MonoBehaviour
{
private int FramesPerSec;
private float frequency = 1.0f;
private int fps;
private float ms;
private string strFps;
private string strMs;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_407961d3c642 | unity_docs | scripting | In Unity's 'Customizing new scene creation', what is 'Scene Template instantiation sequence' and how does it work? | When you create a new scene from a template with cloneable dependencies, Unity performs several file operations. Most of these operations trigger Unity events that you can listen for, and react to, in
scripts
.
The instantiation sequence is as follows:
You click Create in the
New Scene dialog
. Unity calls the:
Scene t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e873f793d4ad | unity_docs | rendering | In Unity's 'Custom Data module reference', what is 'Custom Data module properties' and how does it work? | Each channel in the Custom Data module contains the following settings.
Property Description Mode
Specifies the format of your custom data. The following options are available:
Disabled:
Disables the Custom Data module.
Vector:
Defines up to four MinMaxCurve components.
Color:
Defines an HDR-enabled MinMaxGradient usin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_388171f43263 | unity_docs | ui | What is `GUILayout.VerticalScrollbar` in Unity? Explain its purpose and usage. | GUILayout.VerticalScrollbar
Declaration
public static float
VerticalScrollbar
(float
value
,
float
size
,
float
topValue
,
float
bottomValue
,
params GUILayoutOption[]
options
);
Declaration
public static float
VerticalScrollbar
(float
value
,
float
size
,
float
topValue
,
float
bottomValue
,
GUIStyle
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_665186101d9a | unity_docs | scripting | What are the parameters of `KeyCode.UpArrow` in Unity? | ```csharp
//Attach this to a GameObject
//This script tells when the up arrow key is pressed down and when it is released
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect when the up arrow key is pressed down
if (Input.GetKeyDown(KeyCode.UpArrow))
Deb... | 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.