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_285a31e8509b | unity_docs | scripting | Give me an overview of the `CustomGridBrushAttribute` class in Unity. | CustomGridBrushAttribute
class in
UnityEngine
/
Implemented in:
UnityEngine.TilemapModule
Description
Attribute to define the class as a grid brush and to make it available in the palette window.
Properties
Property
Description
defaultBrush
If set to true, brush will replace Unity built-in brush as the defau... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cbc5acde953 | unity_docs | scripting | What is `PlayerSettings.enableCrashReportAPI` in Unity? Explain its purpose and usage. | PlayerSettings.enableCrashReportAPI
public static bool
enableCrashReportAPI
;
Description
Enables CrashReport API.
Enables a custom crash reporter to capture crashes. Crash logs will be available to scripts via CrashReport API. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f1e72c474dc | unity_docs | rendering | What is `ParticleSystem.has3DParticleRotations` in Unity? Explain its purpose and usage. | ParticleSystem.has3DParticleRotations
public bool
has3DParticleRotations
;
Description
Determines whether the Particle System rotates its particles around only the Z axis, or whether the system specifies separate values for the X, Y and Z axes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_77180b05bfd8 | unity_docs | animation | Explain 'Mecanim FAQ' in Unity. | ## General questions
What’s the difference between the Animation window and the
Animator window
?
Use the
Animation Window
to create and edit
animation clips
within Unity. You can use it to animate almost every property that you can edit in the inspector , from a Game Object’s position, a material color, a light’s bri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_80dee9900fe0 | unity_docs | rendering | In Unity's 'Model Import Settings reference', what is 'Rig' and how does it work? | Contains settings for rigs (sometimes called skeletons). A rig includes a set of deformers arranged in a hierarchy that animate a mesh (sometimes called skin) on one or more models created in a 3D modeling application such as Autodesk 3ds Max or Autodesk Maya. For humanoid and generic (non-humanoid) models, Unity creat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60fb9e0acc44 | unity_docs | math | What is `TrailRenderer.GetPosition` in Unity? Explain its purpose and usage. | TrailRenderer.GetPosition
Declaration
public
Vector3
GetPosition
(int
index
);
Parameters
Parameter
Description
index
The index of the position to retrieve.
Returns
Vector3
The position at the specified index in the array.
Description
Get the position of a vertex in the trail.
Additional resource... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e822be9853d2 | unity_docs | rendering | What is `U2D.SpriteAtlasExtensions.SetTextureSettings` in Unity? Explain its purpose and usage. | SpriteAtlasExtensions.SetTextureSettings
Declaration
public static void
SetTextureSettings
(
U2D.SpriteAtlas
spriteAtlas
,
U2D.SpriteAtlasTextureSettings
src
);
Description
Set the
SpriteAtlasTextureSettings
for the packed texture generated by this
SpriteAtlas
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2aa359f2afcf | unity_docs | scripting | What is `UIElements.Clickable.OnPointerUp` in Unity? Explain its purpose and usage. | Clickable.OnPointerUp
Declaration
protected void
OnPointerUp
(
UIElements.PointerUpEvent
evt
);
Parameters
Parameter
Description
evt
The event.
Description
This method is called when a PointerUpEvent is 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_5bc62174c458 | unity_docs | scripting | What is `ColorUsageAttribute.ctor` in Unity? Explain its purpose and usage. | ColorUsageAttribute Constructor
Declaration
public
ColorUsageAttribute
(bool
showAlpha
);
Declaration
public
ColorUsageAttribute
(bool
showAlpha
,
bool
hdr
);
Obsolete
Brightness and exposure parameters are no longer used for anything. Use ColorUsageAttribute(bool showAlpha, bool hdr).
Declaration
publi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48746f6a79ee | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.AttributeEnumString_1` in Unity? Explain its purpose and usage. | AttributeEnumString<T0>
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseAttribute
Description
An attribute that represents an
Enum
value.
Public Methods
Method
Description
Get
Gets the value of the Enum attribute.
Set
Sets a new Enum value for the attribute.
Inhe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_298ca5c59ac9 | unity_docs | performance | What is `ProfilerWindow.SelectAndStayOnLatestFrame` in Unity? Explain its purpose and usage. | ProfilerWindow.SelectAndStayOnLatestFrame
Declaration
public void
SelectAndStayOnLatestFrame
();
Description
Selects the newest frame that was profiled and if newer frames are profiled or loaded into the profiler window, the Profiler Window will keep showing the newest frame of these. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61a38054a377 | unity_docs | scripting | What is `Experimental.GraphView.ShortcutHandler.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ShortcutHandler Constructor
Declaration
public
ShortcutHandler
(Dictionary<Event,ShortcutDelegate>
dictionary
);
Parameters
Parameter
Description
dictionary
Dictionary of shortcuts and their actions.
Description
Shortcu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_15b7760110e0 | unity_docs | physics | What is `BuoyancyEffector2D.flowAngle` in Unity? Explain its purpose and usage. | BuoyancyEffector2D.flowAngle
public float
flowAngle
;
Description
The angle of the force used to similate fluid flow.
Fluid flow can be defined to move in any direction with a specific magnitude and a random variation on that magnitude.
This property defines the direction of the force to be applied with the siz... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ca30cabacd3 | unity_docs | input | Show me a Unity C# example demonstrating `TouchScreenKeyboard.text`. | TouchScreenKeyboard.text
public string
text
;
Description
Returns the text displayed by the input field of the keyboard.
This value can be accessed at any moment, even if user has not yet finished input process.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c6584ed9c791 | unity_docs | physics | Explain 'Analyzing Profiler traces' in Unity. | When you profile your application, there are some common issues that you might come across. This page outlines how to investigate the cause of some common performance issues.
## Dissecting startup traces
When looking at a trace of start-up times, there are two key methods to inspect:
UnityInitApplicationGraphics and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13f054755cba | unity_docs | scripting | What is `GraphicsBuffer.UsageFlags` in Unity? Explain its purpose and usage. | UsageFlags
enumeration
Description
The intended usage of a GraphicsBuffer.
Provide the intended usage (mode) when creating a GraphicsBuffer.
GraphicsBuffer.UsageFlags.None
lets you update the data using
GraphicsBuffer.SetData
.
GraphicsBuffer.UsageFlags.LockBufferForWrite
lets you write to the buffer using
Gra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a8a22c3e47f1 | unity_docs | xr | In Unity's 'Set up your Nginx server configuration for Web builds', what is 'Edit your Nginx server configuration file for use with Unity' and how does it work? | Add the following configuration within your existing HTTP server configuration.
```
http {
# ...
server {
# Nest inside existing location rule
location / {
# ...
```
You are now ready to add code that is specific to your build and what file types and compression types you want your server to use. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bc777d2faaaf | unity_docs | performance | What is `Unity.Profiling.ProfilerRecorder.GetSample` in Unity? Explain its purpose and usage. | ProfilerRecorder.GetSample
Declaration
public
Unity.Profiling.ProfilerRecorderSample
GetSample
(int
index
);
Description
Gets sample data.
Use to obtain sample data.
```csharp
using Unity.Profiling;
using UnityEngine;public class FrameTimeScript : MonoBehaviour
{
ProfilerRecorder frameTimeRecorder; void On... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a51bbc5a22ec | unity_docs | scripting | Explain 'Offer an Asset Store package at a discount' in Unity. | The
Asset Store
runs timed promotional sales that offer many packages on the Asset Store at a discount. If the Asset Store team contacts you to include a package in the sale, you can sell that package at a reduced price for that discount period.
When your discount period ends, you must leave the Asset Store package at ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1d25da4f2e9 | unity_docs | animation | What is `AssetImporters.MaterialDescription.HasAnimationCurve` in Unity? Explain its purpose and usage. | MaterialDescription.HasAnimationCurve
Declaration
public bool
HasAnimationCurve
(string
propertyName
);
Parameters
Parameter
Description
propertyName
The name of the material property.
Returns
bool
Returns true if the material property is animated. Returns false otherwise.
Description
Checks if a mat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3edcfffdcffc | github | scripting | Write a Unity Editor script for Event Link Property Drawer | ```csharp
using Hudossay.AttributeEvents.Assets.Runtime.EventLinks;
using UnityEditor;
using UnityEngine;
namespace Hudossay.AttributeEvents.Assets.Editor
{
[CustomPropertyDrawer(typeof(EventLinkBase), true)]
public class EventLinkPropertyDrawer : PropertyDrawer
{
private const string BroadcasterLa... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_0c001513d945 | unity_docs | ui | Show me a Unity code example for 'Replace deprecated browser interaction code'. | ment code.
Deprecated code
Replacement code
dynCall()
makeDynCall()
Pointer_stringify()
UTF8ToString()
unity.Instance()
CreateUnityInstance()
gameInstance
unityInstance
## Change dynCall to makeDynCall
The dynCall function is deprecated. If you have any code that uses dynCall , replace it with
makeDynCall
. Make this... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73aa66845993 | unity_docs | math | Show me a Unity C# example demonstrating `Search.SearchUtils.FetchGameObjects`. | lic static IEnumerable<GameObject>
FetchGameObjects
();
Parameters
Parameter
Description
scene
Scene to get objects from.
Returns
GameObject[]
The array of game objects in the scene.
Description
Utility function to fetch all the game objects in a particular scene.
Use
SearchUtils.FetchGameObjects
to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e44cdb19cdf | unity_docs | input | Show me a Unity C# example demonstrating `Input.GetAxis`. | Manager
. This brings up the Input Manager. Expand
Axis
to see the list of your current inputs. You can use one of these as the
axisName
. To rename the input or change the positive button etc., expand one of the options, and change the name in the
Name
field or
Positive Button
field. Also, change the
Type
to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a6e67958e36 | unity_docs | scripting | What is `Object.Destroy` in Unity? Explain its purpose and usage. | Object.Destroy
Declaration
public static void
Destroy
(
Object
obj
,
float
t
= 0.0F);
Parameters
Parameter
Description
obj
The object to destroy.
t
The optional amount of time to delay before destroying the object.
Description
Removes a GameObject, component, or asset.
Destroys the specified object.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21b4b8f3fc6b | unity_docs | rendering | What is `Rendering.ScriptableCullingParameters.accurateOcclusionThreshold` in Unity? Explain its purpose and usage. | ScriptableCullingParameters.accurateOcclusionThreshold
public float
accurateOcclusionThreshold
;
Description
This parameter determines query distance for occlusion culling.
The accurateOcclusionThreshold controls the distance where the level of detail (LOD) changes.
The default value of this parameter is -1, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92251e2bac31 | unity_docs | math | What is `AI.NavMeshPath` in Unity? Explain its purpose and usage. | NavMeshPath
class in
UnityEngine.AI
/
Implemented in:
UnityEngine.AIModule
Description
A path as calculated by the navigation system.
The path is represented as a list of waypoints stored in the
corners
array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_96782389fc7e | unity_docs | scripting | What is `ObjectChangeEventStream.Builder.PushChangeSceneEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.Builder.PushChangeSceneEvent
Declaration
public void
PushChangeSceneEvent
(ref
ChangeSceneEventArgs
data
);
Parameters
Parameter
Description
data
The event data to add to the stream.
Description
Adds an
ChangeSceneEventArgs
to the end of the stream. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65b73623771d | unity_docs | rendering | What are the parameters of `Cubemap.GetPixelData` in Unity? | Returns NativeArray<T> A native array that points directly to the texture's data buffer in CPU memory. Description Gets the raw data from a texture. This method returns a NativeArray<T0> that points directly to the texture's data on the CPU and has the size of the mipmap level. The array doesn't contain a copy of the d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5b2e4251f5df | unity_docs | rendering | In Unity's 'Built-in shader variables reference', what is 'Inline sampler suffixes' and how does it work? | Add the following suffixes when you declare an inline SamplerState sampler in HLSL code, to manually set texture filtering and wrapping modes. Separate multiple words with an underscore (
_
). For example, to set a sampler to use linear filtering and repeat wrapping mode, name it
sampler_linear_repeat
.
Note
: These sa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbfbd18b8f62 | unity_docs | scripting | Give me an overview of the `LayerMask` class in Unity. | LayerMask
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Specifies Layers to use in a
Physics.Raycast
.
A
GameObject
can use up to 32
LayerMask
s supported by the Editor. The first 8 of these
Layers
are specified by Unity; the following 24 are controllable by the user.
Bitmasks... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7932a80f050f | unity_docs | scripting | What is `PackageManager.PackageRegistrationEventArgs.changedFrom` in Unity? Explain its purpose and usage. | PackageRegistrationEventArgs.changedFrom
public ReadOnlyCollection<PackageInfo>
changedFrom
;
Description
A collection of
PackageInfo
entries describing packages to be overridden by another version during the Package Manager registration process. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59175e360b71 | unity_docs | rendering | Show me a Unity C# example demonstrating `UIElements.MeshGenerationContext.Allocate`. | ures passed to this API can be internally copied into a larger atlas.
If a valid texture was passed, then the
Vertex.uv
values should be used to map the texture to the geometry.
You can call
MeshGenerationContext.Allocate()
multiple times for the same element or context.
To optimize performance, minimize t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfb85a6c8205 | unity_docs | animation | What is `Animations.DiscreteEvaluationAttribute` in Unity? Explain its purpose and usage. | DiscreteEvaluationAttribute
class in
UnityEngine.Animations
/
Implemented in:
UnityEngine.AnimationModule
Description
Use this attribute to indicate that a property will be evaluated as a discrete value during animation playback.
When a property is assigned the DiscreteEvaluation attribute, it is evaluated as a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1a485bbdadf9 | unity_docs | ui | Show me a Unity code example for 'Web template structure and instantiation'. | string value.
Note
: Underscore characters in variable names display as spaces inside the field to improve readability.
## Structure of the index.html file
The
index.html
contains the code necessary to load the build and should include the following:
A
<canvas>
element. Unity runtime uses the
<canvas>
element to rend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7e53ee40cde | unity_docs | input | Show me a Unity C# example demonstrating `Input.GetKey`. | for auto fire. For the list of key identifiers
see
Input Manager
.
When dealing with input it is recommended to use Input.GetAxis and Input.GetButton instead
since it allows end-users to configure the keys.
iOS, tvOS
: Due platform limitations,
GetKeyUp
event for keyboard events is delayed by about half a second, s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1c795086572f | unity_docs | physics | In Unity's 'Introduction to collision', what is 'Collider types' and how does it work? | A collider’s type is based on the configuration of its GameObject’s Collider and Rigidbody components. This configuration determines how a collider behaves, and how it interacts with other colliders.
Static colliders: The GameObject has a collider but no Rigidbody.
Rigidbody colliders: The GameObject has a collider and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c924d0884f3 | unity_docs | physics | What is `VersionControl.Provider.Checkout` in Unity? Explain its purpose and usage. | Provider.Checkout
Declaration
public static
VersionControl.Task
Checkout
(
VersionControl.Asset
asset
,
VersionControl.CheckoutMode
mode
);
Declaration
public static
VersionControl.Task
Checkout
(
VersionControl.Asset
asset
,
VersionControl.CheckoutMode
mode
,
VersionControl.ChangeSet
changeset
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21499caba3db | unity_docs | editor | What is `Search.SearchSelectorAttribute` in Unity? Explain its purpose and usage. | SearchSelectorAttribute
class in
UnityEditor.Search
Description
Search selector attribute used to define how a custom value can be selected from a search item.
Here's an example to select the number of line of code of text assets.
> select{p: *.cs, @path, @loc}.
```
[SearchSelector("loc", provider: "asset")]
sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48988866928c | unity_docs | rendering | What is `LightBakingOutput.occlusionMaskChannel` in Unity? Explain its purpose and usage. | LightBakingOutput.occlusionMaskChannel
public int
occlusionMaskChannel
;
Description
In case of a
LightmapBakeType.Mixed
light, contains the index of the occlusion mask channel to use if any, otherwise -1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_97fe8c9cee27 | unity_docs | ui | In Unity's 'Position element with the layout engine', what is 'Absolute position' and how does it work? | UI Builder also supports the Position style properties. The
Position > Absolute
mode makes an element invisible to the default Flexbox-based layout engine. It’s as if it no longer takes any space.
Absolute
-position elements appear on top of any siblings that are
Relative
-position.
While using Absolute position, you c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a98374503087 | unity_docs | scripting | What is `Video.VideoPlayer.clip` in Unity? Explain its purpose and usage. | VideoPlayer.clip
public
Video.VideoClip
clip
;
Description
The clip being played by the
VideoPlayer
.
The
VideoPlayer
may reference both a clip and a URL at the same time. The last one that was set takes precedence.
Setting this to
null
will stop any currently prepared playback.
Note:
Not supported on ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5ddf70f356d | unity_docs | rendering | What is `GUILayout.Toolbar` in Unity? Explain its purpose and usage. | GUILayout.Toolbar
Declaration
public static int
Toolbar
(int
selected
,
string[]
texts
,
params GUILayoutOption[]
options
);
Declaration
public static int
Toolbar
(int
selected
,
Texture[]
images
,
params GUILayoutOption[]
options
);
Declaration
public static int
Toolbar
(int
selected
,
GUIContent[]
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9a59640250a0 | github | scripting | Write a Unity C# script called Main Config Data | ```csharp
using RMC.Core.Architectures.Umvcs.Model.Data;
using UnityEngine;
namespace RMC.Core.Architectures.Umvcs.Samples.MyBouncyBallExample.Umvcs.Model
{
[CreateAssetMenu(fileName = "MainConfigData",
menuName = MyBouncyBallExampleConstants.CreateAssetMenuPath + "MainConfigData",
order = MyBouncyBallExampleC... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_ad55e8b31f2c | unity_docs | editor | Show me a Unity C# example demonstrating `EditorApplication.Exit`. | EditorApplication.Exit
Declaration
public static void
Exit
(int
returnValue
);
Description
Exit the Unity editor application.
Calling this function will exit right away, without asking to save changes, so you may lose data!
This function is mostly useful for exiting out of a commandline process with a specific... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a5c3ae767116 | unity_docs | scripting | In Unity's 'Inspector-configurable custom events', what is 'Static and dynamic calls' and how does it work? | When configuring a UnityEvent in the Inspector window there are two types of function calls that are supported:
Static
calls are entirely preconfigured at authoring time, with their target and parameter values defined in the Inspector window. When the callback is invoked, the target function is invoked with the paramet... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_38a1071e82e8_doc_13 | github | scripting | What does `TrySpawnObject` do in this Unity script? Explain its purpose and signature. | Attempts to spawn an object from at the given position. The object will have ayaw rotation that faces , plus or minus a random angle within .The world space position at which to spawn the object.The world space normal of the spawn surface.Returns if the spawner successfully spawned an object. Otherwise returns, for i... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_47b65f827f13 | unity_docs | audio | What is `Networking.UnityWebRequest.GetAudioClip` in Unity? Explain its purpose and usage. | Removed
UnityWebRequest.GetAudioClip
Obsolete
UnityWebRequest.GetAudioClip is obsolete. Use UnityWebRequestMultimedia.GetAudioClip instead.
Upgrade to
GetAudioClip
Declaration
public static
Networking.UnityWebRequest
GetAudioClip
(string
uri
,
AudioType
audioType
);
Description
OBSOLETE. Use UnityWebR... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c21d30f02e4 | unity_docs | rendering | What is `Search.SearchUtils.GetAssetThumbnailFromPath` in Unity? Explain its purpose and usage. | SearchUtils.GetAssetThumbnailFromPath
Declaration
public static
Texture2D
GetAssetThumbnailFromPath
(string
path
);
Parameters
Parameter
Description
path
Asset path.
Returns
Texture2D
Thumbnail texture.
Description
Returns a thumbnail texture to be used in the search view.
See
SearchProvider.fetc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_241646c3cf28 | unity_docs | rendering | In Unity's 'Introduction to video transparency support in Unity', what is 'Global alpha value transparency' and how does it work? | The Video Player component supports a global alpha value when it plays content in a
camera
’s near or far planes. When you change this value, every pixel in the video changes transparency. If you set the value to
0.0f
, the entire video becomes completely transparent.
For instructions on how to change global alpha valu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20c5681e4df1 | unity_docs | scripting | What is `Caching.GetCacheByPath` in Unity? Explain its purpose and usage. | Caching.GetCacheByPath
Declaration
public static
Cache
GetCacheByPath
(string
cachePath
);
Parameters
Parameter
Description
cachePath
The cache path.
Returns
Cache
A reference to the Cache with the given path.
Description
Returns the Cache that has the given cache path.
```csharp
using System.IO;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_268971e1fdd6 | github | scripting | Write a Unity C# script called Clock View | ```csharp
using System;
using RMC.Core.Utilities.Testing;
using RMC.Mini.View;
using RMC.Mini.Samples.Clock.WithMini.Mini.Controller.Commands;
using UnityEngine;
namespace RMC.Mini.Samples.Clock.WithMini.Mini.View
{
/// <summary>
/// The View handles user interface and user input
/// </summary>
public ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_e4b53b3dedc5 | unity_docs | editor | What is `Events.UnityEventTools` in Unity? Explain its purpose and usage. | UnityEventTools
class in
UnityEditor.Events
Description
Editor tools for working with persistent UnityEvents.
Static Methods
Method
Description
AddBoolPersistentListener
Adds a persistent, preset call to the listener.
AddFloatPersistentListener
Adds a persistent, preset call to the listener.
AddIntPersistent... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e776334a10f | unity_docs | editor | What is `Handles.ShouldRenderGizmos` in Unity? Explain its purpose and usage. | Handles.ShouldRenderGizmos
Declaration
public static bool
ShouldRenderGizmos
();
Description
Determines whether or not to draw Gizmos.
This helper function abstracts the state of Gizmos being enabled or not in the Game and Scene view. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_644a1563fdd2 | unity_docs | rendering | In Unity's 'Introduction to lighting', what is 'Lights' and how does it work? | Lights
are an essential part of every
scene
. While meshes and textures define the shape and look of a scene, lights define the color and mood of your 3D environment. You’ll likely work with more than one light in each scene. Making them work together requires a little practice but the results can be quite amazing.
Lig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_27c586c18390 | unity_docs | rendering | In Unity's 'Asset metadata', what is 'Meta files' and how does it work? | Unity creates.meta
files for each folder and file in your project’s Assets folder and stores the.meta
file in the same location as the asset file. These files are hidden in the
Project window
, and are considered a hidden file by your operating system, so might be hidden by default in your file browser.
The.meta
files ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea8cc2b11649 | unity_docs | scripting | What is `RigidbodyConstraints.FreezeRotationZ` in Unity? Explain its purpose and usage. | RigidbodyConstraints.FreezeRotationZ
Description
Freeze rotation along the Z-axis.
```csharp
//This example shows how RigidbodyConstraints is used to freeze the position and rotation of a Rigidbody in the z axis at start-up.
//It also shows what happens when these constraints are removed, when you press the space k... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08aa4d2e2078 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.itemSelectedVariantUssClassName` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.itemSelectedVariantUssClassName
public static string
itemSelectedVariantUssClassName
;
Description
The USS class name of selected item elements in the BaseVerticalCollectionView.
Unity adds this USS class to every selected element in the BaseVerticalCollectionView. The
BaseVertic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0c822f06327 | unity_docs | scripting | Give me an overview of the `AudioHighPassFilter` class in Unity. | AudioHighPassFilter
class in
UnityEngine
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.AudioModule
Description
The Audio High Pass Filter passes high frequencies of an AudioSource, and cuts off signals with frequencies lower than the Cutoff Frequency.
Additional resources:
Audio High Pass Filter
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e6ad0de76234 | github | scripting | Write a Unity C# script called XR Text Input | ```csharp
using CoreLibrary;
using UnityEngine;
using UnityEngine.UIElements;
namespace UIToolkitXRAdapter.XRAdapter {
// TODO move to an interface as soon as a way is found to add interfaces in the editor
public abstract class XRTextInput: BaseBehaviour {
public abstract void Activate(TextFiel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a56b5963c014 | unity_docs | editor | What is `Build.Reporting.ScenesUsingAsset` in Unity? Explain its purpose and usage. | ScenesUsingAsset
struct in
UnityEditor.Build.Reporting
Description
Contains information about which scenes in a build have references to an Asset in the build.
Properties
Property
Description
assetPath
The asset path.
scenePaths
The list of scenes in the build referring to the asset, identified by a string co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_feeac0c73edc | unity_docs | rendering | Explain 'GPU Instancing in the Built-In Render Pipeline' in Unity. | This section contains information on how to add GPU instancing support to a custom Unity
shader
. It first explains the shader keywords, variables, and functions custom Unity shaders require to support GPU instancing. Then it includes examples of how to add per-instance data to both
surface shaders
and vertex/fragment ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f8f6082d403 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.Provider.GetLatestIsValid`. | Provider.GetLatestIsValid
Declaration
public static bool
GetLatestIsValid
(
VersionControl.AssetList
assets
);
Parameters
Parameter
Description
assets
List of assets to test.
Description
The task tests the given asset list and returns true if
Provider.GetLatest
is valid operation for one or more assets.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec0b7e3d887c | unity_docs | audio | What is `AudioSource.GetSpatializerFloat` in Unity? Explain its purpose and usage. | AudioSource.GetSpatializerFloat
Declaration
public bool
GetSpatializerFloat
(int
index
,
out float
value
);
Parameters
Parameter
Description
index
Zero-based index of user-defined parameter to be read.
value
Return value of the user-defined parameter that is read.
Returns
bool
True, if the parameter ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd1b353b0f36 | unity_docs | animation | What is `AnimatorOverrideController.overridesCount` in Unity? Explain its purpose and usage. | AnimatorOverrideController.overridesCount
public int
overridesCount
;
Description
Returns the count of overrides.
```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;public class ResetOverrides : MonoBehaviour
{
public AnimatorOverrideController overrideController;
protecte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_711458c01462 | unity_docs | scripting | What is `AndroidJNI.SetIntField` in Unity? Explain its purpose and usage. | AndroidJNI.SetIntField
Declaration
public static void
SetIntField
(IntPtr
obj
,
IntPtr
fieldID
,
int
val
);
Description
Sets the value of an instance field of the specified object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ee01d58f842 | unity_docs | rendering | What is `SystemInfo.supportsAsyncCompute` in Unity? Explain its purpose and usage. | SystemInfo.supportsAsyncCompute
public static bool
supportsAsyncCompute
;
Description
Returns true when the platform supports asynchronous compute queues and false if otherwise.
Additional resources:
ComputeShader
,
ComputeBuffer
,
CommandBuffer
classes.
ScriptableRenderContext.ExecuteCommandBufferAsync
, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90d63a206830 | unity_docs | scripting | What is `Progress.Resume` in Unity? Explain its purpose and usage. | Progress.Resume
Declaration
public static bool
Resume
(int
id
);
Parameters
Parameter
Description
id
The progress indicator's unique ID.
Returns
bool
True if the task resumes, false if it cannot resume.
Description
Resumes a paused progress indicator, and invokes the pause callback for the associated... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ead77ab35d3c | unity_docs | math | What is `Color` in Unity? Explain its purpose and usage. | Color
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Representation of RGBA colors.
This structure is used throughout Unity to pass colors around.
Each color component is a floating point value with a range from 0 to 1.
Components (
r
,
g
,
b
) define a color in RGB color space. Alph... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d63643dc0f89 | unity_docs | scripting | What is `MeshTopology.LineStrip` in Unity? Explain its purpose and usage. | MeshTopology.LineStrip
Description
Mesh is a line strip.
First two indices form a line, and then each new index connects a new
vertex to the existing line strip.
Additional resources:
Mesh.SetIndices
function. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ebe8e61eb3b | unity_docs | physics | What is `Collision.impulse` in Unity? Explain its purpose and usage. | Collision.impulse
public
Vector3
impulse
;
Description
The total impulse applied to this contact pair to resolve the collision.
The total impulse is obtained by summing up impulses applied at all contact points in this collision pair. To work out the total force applied you can divide the total impulse by the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8985df4e6167 | unity_docs | editor | Give me an overview of the `InitializeOnEnterPlayModeAttribute` class in Unity. | InitializeOnEnterPlayModeAttribute
class in
UnityEditor
Description
Allow an editor class method to be initialized when Unity enters Play Mode.
Use to reset static fields in Editor classes on Enter Play Mode without Domain Reload.
```csharp
using UnityEngine;
using UnityEditor;class MyAnotherClass
{
static int ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dcbb74f5140e | unity_docs | scripting | What is `Time` in Unity? Explain its purpose and usage. | Time
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Provides an interface to get time information from Unity.
For more information, see the following pages in the User Manual:
Time and Framerate Management
Order of execution for event functions
.
Static Properties
Property
Descri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edef781e20da | unity_docs | editor | What is `PlayerSettings.Android.preferredInstallLocation` in Unity? Explain its purpose and usage. | PlayerSettings.Android.preferredInstallLocation
public static
AndroidPreferredInstallLocation
preferredInstallLocation
;
Description
Preferred application install location.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class PreferredInstallLocationSample : MonoBehaviour
{
[... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7ffe443c7561 | unity_docs | xr | Explain 'Licenses and activation' in Unity. | To use Unity, you need an activated license. To learn about Unity’s plans and prices, go to the
Unity Store
.
Topic Description Licensing overview
Learn about the different licensing models offered by Unity.
License activation methods
Understand the different methods you can use to activate your license and decide whic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d5f9d370f872_doc_12 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Name of an input control scheme that defines the grouping of bindings that should remain enabled when applying the continuous movement control scheme.Control schemes are created and named in the Input Actions window. Can be an empty string, which means only bindings that match thebase control scheme will be enabled.
S... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_1267e11b8ae9 | unity_docs | scripting | What is `AndroidJNI.GetFloatField` in Unity? Explain its purpose and usage. | AndroidJNI.GetFloatField
Declaration
public static float
GetFloatField
(IntPtr
obj
,
IntPtr
fieldID
);
Description
Returns the value of an instance (nonstatic) field of an object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4cccb9fbea3f | unity_docs | editor | What are the parameters of `UIElements.DropdownMenu.AppendSeparator` in Unity? | Description Adds a separator line in the menu. The separator is added at the end of the current item list. ```csharp
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;public class ContextMenuWindow : EditorWindow
{
[MenuItem("My/Context Menu Window")]
static void ShowMe() => GetWindow<ContextMe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_396197b99bcb | unity_docs | scripting | What is `UIElements.ConverterGroup.TryConvert` in Unity? Explain its purpose and usage. | ConverterGroup.TryConvert
Declaration
public bool
TryConvert
(ref TSource
source
,
out TDestination
destination
);
Parameters
Parameter
Description
source
The source value to convert.
destination
The converted destination value if the conversion succeeded, and the default value otherwise.
Returns
bool
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_712b3ec7cb6d | unity_docs | rendering | Show me a Unity code example for 'Create batches with the BatchRendererGroup API in URP'. | e the instance indices you pass to it. What this means depends on the shader. For Unity-provided SRP shaders, this means that there must be valid instance data in the buffer at the index you pass.
See the following code sample for an example of how to create a batch with metadata values and a GraphicsBuffer of instance... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd22dce5a623 | unity_docs | scripting | What is `ILogHandler.LogFormat` in Unity? Explain its purpose and usage. | ILogHandler.LogFormat
Declaration
public void
LogFormat
(
LogType
logType
,
Object
context
,
string
format
,
params object[]
args
);
Parameters
Parameter
Description
logType
The type of the log message.
context
Object to which the message applies.
format
A composite format string.
args
Format arg... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99e6215afda4 | unity_docs | animation | What is `Animation.CrossFadeQueued` in Unity? Explain its purpose and usage. | Animation.CrossFadeQueued
Declaration
public
AnimationState
CrossFadeQueued
(string
animation
,
float
fadeLength
= 0.3F,
QueueMode
queue
= QueueMode.CompleteOthers,
PlayMode
mode
= PlayMode.StopSameLayer);
Description
Cross fades an animation after previous animations has finished playing.
For exa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5db8989821f6 | unity_docs | scripting | What is `XR.XRDisplaySubsystem.MarkTransformLateLatched` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.MarkTransformLateLatched
Declaration
public void
MarkTransformLateLatched
(
Transform
transform
,
XR.XRDisplaySubsystem.LateLatchNode
nodeType
);
Parameters
Parameter
Description
transform
The transform of the GameObject to be late latched.
nodeType
The late latch node type to be ass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4edcb1a9606f | unity_docs | scripting | What is `Android.AndroidGame.SetGameState` in Unity? Explain its purpose and usage. | AndroidGame.SetGameState
Declaration
public static void
SetGameState
(bool
isLoading
,
Android.AndroidGameState
gameState
);
Declaration
public static void
SetGameState
(bool
isLoading
,
Android.AndroidGameState
gameState
,
int
label
,
int
quality
);
Parameters
Parameter
Description
isLoading
Wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ceb517000f7 | unity_docs | physics | What is `ContactPoint2D.normal` in Unity? Explain its purpose and usage. | ContactPoint2D.normal
public
Vector2
normal
;
Description
Surface normal at the contact point.
This is the normal vector, that is the vector that is perpendicular to the surface or the incoming
Collider2D
at the contact point.
Additional resources:
Collider2D
class. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8cdf163d03e | unity_docs | animation | What is `Animations.TransformStreamHandle.GetScaleReadMask` in Unity? Explain its purpose and usage. | TransformStreamHandle.GetScaleReadMask
Declaration
public bool
GetScaleReadMask
(
Animations.AnimationStream
stream
);
Parameters
Parameter
Description
stream
The
AnimationStream
that holds the animated values.
Returns
bool
Returns true if the scale can be read.
Description
Gets the scale read mas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c37fa9cea7b | unity_docs | editor | What is `Search.ISearchView.itemIconSize` in Unity? Explain its purpose and usage. | 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_man_dcf9c93482e2 | unity_docs | editor | Explain 'Device Simulator Devices' in Unity. | com.unity.device-simulator.devices
## Description
This package contains additional devices for the Device Simulator. Each device has a complete device definition and includes a device overlay. After you install this package, the additional devices are immediately available in the Device Simulator.
## Released for Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7803e27368e8 | unity_docs | rendering | What is `PlayerSettings.GetPlatformIcons` in Unity? Explain its purpose and usage. | PlayerSettings.GetPlatformIcons
Declaration
public static PlatformIcon[]
GetPlatformIcons
(
Build.NamedBuildTarget
buildTarget
,
PlatformIconKind
kind
);
Obsolete
Use GetPlatformIcons(NamedBuildTarget , PlatformIconKind) instead.
Declaration
public static PlatformIcon[]
GetPlatformIcons
(
BuildTargetGro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f659898325a4 | unity_docs | physics | What is `Physics.SyncTransforms` in Unity? Explain its purpose and usage. | Physics.SyncTransforms
Declaration
public static void
SyncTransforms
();
Description
Apply Transform changes to the physics engine.
When a
Transform
component changes, any
Rigidbody
or
Collider
on that
Transform
or its children may need to be repositioned, rotated or scaled depending on the change to th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0aae2f0f0e3b | unity_docs | rendering | In Unity's 'Comparison of UI systems in Unity', what is 'Roles and skill sets' and how does it work? | Your team’s skill set and comfort level with different technologies is also an important consideration.
The following table lists the recommended system for different roles:
Roles
UI Toolkit
uGUI (Unity UI)
IMGUI
Skill sets Programmer Yes Yes Yes
Programmers can use any game development tool or API.
Technical Artist Pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c37ba78fbacb | unity_docs | math | What is `IMGUI.Controls.PrimitiveBoundsHandle.IsAxisEnabled` in Unity? Explain its purpose and usage. | PrimitiveBoundsHandle.IsAxisEnabled
Declaration
protected bool
IsAxisEnabled
(
IMGUI.Controls.PrimitiveBoundsHandle.Axes
axis
);
Declaration
protected bool
IsAxisEnabled
(int
vector3Axis
);
Parameters
Parameter
Description
axis
An
Axes
.
vector3Axis
An integer corresponding to an axis on a
Vector3
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83abd5214f2f | unity_docs | editor | What are the parameters of `Handles.DrawTexture3DSlice` in Unity? | Description Draws a 3D texture using Slice rendering mode in 3D space. Head scan rendered in slice mode with a custom gradient. ```csharp
using UnityEditor;
using UnityEngine;[ExecuteInEditMode]
public class Reference : MonoBehaviour
{
public Texture3D texture;
public Vector3 slicePositions;
public FilterMo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c1828d1ff4b5 | github | scripting | Write a Unity C# MonoBehaviour script called Mono Behaviour Plus | ```csharp
/// <summary>
/// Mono behaviour plus is a multi-threaded monobehaviour wrapper
/// </summary>
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System;
using System.Reflection;
using System.Diagnostics;
using Debug = UnityEngine.Debug;
public abs... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a83695ecd358 | unity_docs | scripting | What are the parameters of `Networking.UnityWebRequestAssetBundle.GetAssetBundle` in Unity? | Returns UnityWebRequest A UnityWebRequest configured to downloading a Unity Asset Bundle. Description Creates a UnityWebRequest optimized for downloading a Unity Asset Bundle via HTTP GET. This method creates a UnityWebRequest, sets the method to GET and sets the target URL to the string uri argument. Sets no other fla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a86ef7c85220 | unity_docs | editor | In Unity's 'Wrap content inside a scroll view', what is 'Example overview' and how does it work? | This example creates a custom Editor window with two scroll views:
One has a label inside it. The text of the label displays in a line and displays to the next line if the line is full.
One has 15 buttons inside it. The buttons display in a row and display to the next line if the row is full.
To wrap text of the label ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8863a89770dc | unity_docs | editor | What is `VersionControl.VersionControlObject.Refresh` in Unity? Explain its purpose and usage. | VersionControlObject.Refresh
Declaration
public void
Refresh
();
Description
Called when the cached state should be discarded and the new state should be retrieved from the underlying VCS.
Unity calls this method when it regains application focus. The user might have made some changes to the state of version-co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3ba23d1f3e23 | unity_docs | animation | Explain 'Legacy Animation system' in Unity. | Unity’s Legacy animation system (Legacy) has a limited
feature set
that predates Mecanim. Legacy is still available because it is easier to use and provides better performance for simpler animations.
Legacy is also available for backwards compatibility with old Unity projects. Legacy uses the
Animation component
and th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_109343ab5d52 | unity_docs | scripting | Explain 'WebAssembly 2023' in Unity. | The WebAssembly 2023 target is an optional set of features for Unity Web platform builds that can help to optimize your code and improve runtime performance.
Section Description Pre-requisites for WebAssembly 2023
What you need to use the features of WebAssembly 2023.
Optimize your Web build with WebAssembly 2023
A des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1724f442d80c_doc_11 | github | scripting | What does `ConvertToLinearColorspace` do in this Unity script? Explain its purpose and signature. | Convert the environment (sky/fog) colors to linear
Signature:
```csharp
public static void ConvertToLinearColorspace(EnvPayload env)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.