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_c94c6ab88565 | unity_docs | scripting | What is `AnimationEvent.functionName` in Unity? Explain its purpose and usage. | AnimationEvent.functionName
public string
functionName
;
Description
The name of the function that will be called.
This is the same as calling gameObject.SendMessage(animationEvent.functionName, animationEvent).
The function called can have zero or a single argument. See the script example at
AnimationEvent
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f280f77034b | unity_docs | rendering | What is `Rendering.CommandBuffer.IssuePluginCustomBlit` in Unity? Explain its purpose and usage. | CommandBuffer.IssuePluginCustomBlit
Declaration
public void
IssuePluginCustomBlit
(IntPtr
callback
,
uint
command
,
Rendering.RenderTargetIdentifier
source
,
Rendering.RenderTargetIdentifier
dest
,
uint
commandParam
,
uint
commandFlags
);
Parameters
Parameter
Description
callback
Native code callbac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63f37698cbad | unity_docs | rendering | What is `CustomRenderTexture.updateMode` in Unity? Explain its purpose and usage. | CustomRenderTexture.updateMode
public
CustomRenderTextureUpdateMode
updateMode
;
Description
Determine how Unity updates the Custom Render Texture.
Additional resources:
CustomRenderTextureUpdateMode
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d95f7cb427e2 | unity_docs | rendering | In Unity's 'Build Profiles window reference', what is 'Build Data' and how does it work? | Note
: The
Build Data
section is visible only when using a
build profile
.
Setting Description Override Global Scene List Select Override Global Scene List
to create a custom scene list for your build profile. When selecting
Override Global Scene List
, scenes are automatically inherited from the global
scene list
.
Sc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e28e75096cb | unity_docs | scripting | What is `Experimental.GraphView.GraphView.FrameOrigin` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.FrameOrigin
Declaration
public
Experimental.GraphView.EventPropagation
FrameOrigin
();
Returns
EventPropagation
Always returns Stop.
Description
Focus view on the graph's origin. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_396a89da3300 | unity_docs | physics | Show me a Unity C# example demonstrating `Collider.OnCollisionEnter`. | Enter
,
OnCollisionEnter
is passed the
Collision
class and not a Collider.
The
Collision
class contains information, for example, about contact points and impact velocity.
Notes: Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached. Collision events will be sent to di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8c2cb35e176 | unity_docs | math | What is `GameObject.FindGameObjectsWithTag` in Unity? Explain its purpose and usage. | GameObject.FindGameObjectsWithTag
Declaration
public static GameObject[]
FindGameObjectsWithTag
(string
tag
);
Parameters
Parameter
Description
tag
The name of the tag to search for
GameObjects
by.
Description
Retrieves an array of all active GameObjects tagged with the specified tag. Returns an empty a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b045a5f497b1 | unity_docs | rendering | Show me a Unity code example for 'Set the blending mode in a shader'. | on, which you can set using the BlendOp command. Note that while blending itself is supported on all graphics APIs and hardware, some blending operations have more limited support.
Enabling blending disables some optimizations on the GPU (mostly hidden surface removal/Early-Z), which can lead to increased GPU frame tim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d96fee7d1c2 | unity_docs | scripting | What is `Rendering.CommandBuffer.RequestAsyncReadbackIntoNativeArray` in Unity? Explain its purpose and usage. | CommandBuffer.RequestAsyncReadbackIntoNativeArray
Declaration
public void
RequestAsyncReadbackIntoNativeArray
(ref NativeArray<T>
output
,
Texture
src
,
Action<AsyncGPUReadbackRequest>
callback
);
Declaration
public void
RequestAsyncReadbackIntoNativeArray
(ref NativeArray<T>
output
,
Texture
src
,
int ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f77d4dbb3116 | unity_docs | physics | What is `Physics.GetIgnoreCollision` in Unity? Explain its purpose and usage. | Physics.GetIgnoreCollision
Declaration
public static bool
GetIgnoreCollision
(
Collider
collider1
,
Collider
collider2
);
Parameters
Parameter
Description
collider1
The first collider to compare to
collider2
.
collider2
The second collider to compare to
collider1
.
Returns
bool
Whether the collis... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a168e466743 | unity_docs | scripting | Show me a Unity C# example demonstrating `Caching`. | Caching
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
The Caching class lets you manage cached AssetBundles, downloaded using
UnityWebRequestAssetBundle.GetAssetBundle
.
Note:
The Cache API is not supported in WebGL because AssetBundles are stored in the browser cache for the WebGL... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4ad20ef98c0 | unity_docs | math | Show me a Unity C# example demonstrating `Search.ParsedQuery_1.returnPayloadIfEmpty`. | ParsedQuery<T0>.returnPayloadIfEmpty
public bool
returnPayloadIfEmpty
;
Description
Boolean. Indicates if the original payload should be returned when the query is empty.
If set to true, returns the original payload when the query is empty. If set to false, returns an empty array.
```csharp
using System.Collec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c373de714fb8_doc_7 | github | scripting | What does `StartCmdProcess` do in this Unity script? Explain its purpose and signature. | Start hidden cmd process
Signature:
```csharp
protected static void StartCmdProcess(string path, string cmdArgs)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dec1599c1340 | unity_docs | editor | What is `AssetDatabase.AllowAutoRefresh` in Unity? Explain its purpose and usage. | AssetDatabase.AllowAutoRefresh
Declaration
public static void
AllowAutoRefresh
();
Description
Decrements an internal counter which Unity uses to determine whether to allow automatic AssetDatabase refreshing behavior.
Unity uses this method and the corresponding AssetDatabase.DisallowAutoRefresh together intern... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_287120a92924_doc_2 | github | scripting | What does `public` do in this Unity script? Explain its purpose and signature. | Check if all files in the current folder fit in RAM for movie mode.Returns (fits, estimatedMB, availableMB).
Signature:
```csharp
public (bool fits, long estimatedMB, long availableMB) CheckMovieFit()
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_61cee80122e5 | unity_docs | rendering | What is `U2D.SpriteAtlasImporter.variantScale` in Unity? Explain its purpose and usage. | SpriteAtlasImporter.variantScale
public float
variantScale
;
Description
Value used to downscale the master's texture.
While packing a variant
SpriteAtlas
, the master Atlas' packed Texture will be duplicated and scaled according to this value. The resulting new Texture will be the packed Texture of this Atlas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99252e50b40d | unity_docs | scripting | Show me a Unity C# example demonstrating `Color32.b`. | Color32.b
public byte
b
;
Description
Blue component of the color.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
Color32 color = Color.white;
void Start()
{
color.b = 0;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c554b426262 | unity_docs | scripting | What is `Application.unityVersion` in Unity? Explain its purpose and usage. | Application.unityVersion
public static string
unityVersion
;
Description
The version of the Unity runtime used to play the content.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
print("Version of the runtime: " + Application.unityVersion);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39cd87a04a56 | unity_docs | scripting | What is `UIElements.StyleKeyword` in Unity? Explain its purpose and usage. | StyleKeyword
enumeration
Description
Keyword that can be used on any style value types.
Properties
Property
Description
Undefined
Means that there's no keyword defined for that property.
Null
Means that an inline style from IStyle has no value or keyword.
Auto
For style properties accepting auto.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_43f1a0259164 | unity_docs | rendering | Explain 'Create a particle material in the Built-In Render Pipeline' in Unity. | The Unity Standard Particle Shaders are built-in shaders that enable you to render a variety of
Particle System
effects. These shaders provide various particle-specific features that aren’t available with the Standard
Shader
.
To use a Particle Shader:
Select the Material you want to apply the shader to. For example, y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7661274bb485 | unity_docs | editor | Show me a Unity C# example demonstrating `SerializedObject.Update`. | s, then the SerializedObject internal serialized representation can get out of sync. Calling Update() will
reserialize the target objects so that the SerializedObject reflects their latest state.
Calling Update() will discard any locally modified properties that have not yet been applied.
Additional resources:
Seri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c75c70e2fee | unity_docs | rendering | What is `Rendering.BatchRendererGroup.SetBatchBuffer` in Unity? Explain its purpose and usage. | BatchRendererGroup.SetBatchBuffer
Declaration
public void
SetBatchBuffer
(
Rendering.BatchID
batchID
,
GraphicsBufferHandle
buffer
);
Parameters
Parameter
Description
batchID
Unity changes the batch with this ID.
buffer
The
GraphicsBufferHandle
of the
GraphicsBuffer
to be associated with the batch.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_30d997540020 | github | scripting | Write a Unity C# script called Int Variable Text | ```csharp
using System;
using System.Globalization;
using GI.UnityToolkit.Variables;
using UnityEngine;
namespace GI.UnityToolkit.Components.UI.Variables
{
public class IntVariableText : TextComponent
{
[SerializeField] private IntVariable intVariable;
[SerializeField] private bool isTimeSpan =... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_4590658be5f2 | unity_docs | scripting | Show me a Unity C# example demonstrating `AI.NavMeshObstacle.size`. | NavMeshObstacle.size
public
Vector3
size
;
Description
The size of the obstacle, measured in the object's local space.
The size will be scaled by the transform's scale.
```csharp
using UnityEngine;
using UnityEngine.AI;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Start()
{
Na... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c69ef09d3570 | unity_docs | math | What is `Mathf.Acos` in Unity? Explain its purpose and usage. | Mathf.Acos
Declaration
public static float
Acos
(float
f
);
Description
Returns the arc-cosine of
f
- the angle in radians whose cosine is
f
.
```csharp
using UnityEngine;public class ScriptExample : MonoBehaviour
{
void Start()
{
print(Mathf.Acos(0.5f));
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_125a63088790 | unity_docs | scripting | What are the parameters of `Undo.RecordObject` in Unity? | Description Records any changes done on the object after the RecordObject function. Almost all property changes can be recorded with this function. The transform parent, AddComponent, object destruction can not be recorded with this function, for that you should use the dedicated functions. Internally this creates a t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7ae275e900ab | unity_docs | rendering | Explain 'Introduction to linear color space in Unity' in Unity. | Working in linear color space gives more accurate rendering than working in gamma color space.
You can work in linear color space if your Textures were created in linear or gamma color space. Gamma color space Texture inputs to the linear color space Shader program are supplied to the Shader with gamma correction remov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e770778432eb | unity_docs | scripting | What is `Renderer.enabled` in Unity? Explain its purpose and usage. | Renderer.enabled
public bool
enabled
;
Description
Makes the rendered 3D object visible if enabled.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Renderer rend; void Start()
{
rend = GetComponent<Renderer>();
rend.enabled = true;
} // Toggle the Ob... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_03d790d140d0 | unity_docs | scripting | What is `Experimental.GraphView.Dragger.UnregisterCallbacksFromTarget` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Dragger.UnregisterCallbacksFromTarget
Declaration
protected void
UnregisterCallbacksFromTarget
();
Description
Called to unregister event callbacks from the target element. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9f8d2b654d75 | unity_docs | physics | In Unity's 'Physics', what is 'Shared settings' and how does it work? | The Shared tab contains global settings that apply to all physics SDKs.
Setting Description Gravity
Use the x, y and z axes to set the amount of gravity applied to all Rigidbody components. For realistic gravity settings, apply a negative number to the y axis. Gravity is defined in world units per seconds squared.
Note... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bad24423f987 | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.InverseLerp`. | here, within the specified range, the "value" parameter falls.
If the "value" parameter is within the range, InverseLerp returns a value between zero and one, proportional to the value's position within the range.
If the "value" parameter falls outside of the range, InverseLerp returns either zero or one, depending on... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_318d97f1da8f | unity_docs | networking | What is `Unity.Android.Gradle.Manifest.ReqTouchScreen` in Unity? Explain its purpose and usage. | ReqTouchScreen
enumeration
Description
Mirrors the
ReqTouchScreen
enum.
For more information about the attribute, see Android's documentation:
ReqTouchScreen attribute
Properties
Property
Description
Null
Attribute is not set and will not appear in the element.
Undefined
Mirrors android:reqTouchScreen="u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_854da74407c8 | unity_docs | scripting | What is `Rendering.SplashScreen.StopBehavior.FadeOut` in Unity? Explain its purpose and usage. | SplashScreen.StopBehavior.FadeOut
Description
Jumps to the final stage of the Splash Screen and performs a fade from the background to the game.
```csharp
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;// This example shows how the Splash Screen can be canceled early via the user pressing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c834abafd90 | unity_docs | performance | What is `Profiling.CustomSampler` in Unity? Explain its purpose and usage. | CustomSampler
class in
UnityEngine.Profiling
/
Inherits from:
Profiling.Sampler
/
Implemented in:
UnityEngine.CoreModule
Description
Custom CPU Profiler label used for profiling arbitrary code blocks.
Use CustomSampler to measure execution time of script code blocks. Produced information is displayed in the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57f65a1ac31a | unity_docs | ui | What is `Experimental.GraphView.EdgeConnector_1` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeConnector<T0>
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
Experimental.GraphView.EdgeConnector
Description
Manipulator for creating new edges.
Properties
Property
Description
edgeDragHelper
Reference ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dce43df15aea | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISettings.tripleClickSelectsLine`. | GUISettings.tripleClickSelectsLine
public bool
tripleClickSelectsLine
;
Description
Should triple-clicking select whole text in text fields.
Bu default is set to true.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Disables line selecting with triple click on the text area
string str =... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ead5e8e7b885 | unity_docs | scripting | What are the parameters of `Selection.GetTransforms` in Unity? | Returns Transform[] The transforms of the selected objects determined by the mode . Description Retrieves the transforms of selected objects. Retrieves the transform of the current Editor selection after applying the provided SelectionMode flags. You can use this to iterate through relevant scene objects (such as edita... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d8c9eeea54f | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetMainAssetTypeFromGUID`. | AssetDatabase.GetMainAssetTypeFromGUID
Declaration
public static Type
GetMainAssetTypeFromGUID
(GUID
guid
);
Parameters
Parameter
Description
guid
The GUID of the asset.
Returns
Type
Returns the type of the main asset object with
guid
.
Description
Obtains the type of the main object of a given asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c46b44f3e61d | unity_docs | animation | Show me a Unity C# example demonstrating `SharedBetweenAnimatorsAttribute`. | es that this StateMachineBehaviour is instantiated only once and shared by all Animator instances. This attribute reduces the memory footprint for each controller instance.
You choose which StateMachineBehaviour uses this attribute. If your StateMachineBehaviour changes a member variable, this affects all other Animat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8567d7e7af46 | unity_docs | scripting | Show me a Unity C# example demonstrating `LightTransport.RadeonRaysContext.Wait`. | bool
Returns true of the event completed successfully.
Description
Wait for an asynchronous event.
This is a blocking method which stalls the current CPU thread until the operation represented by the EventID is complete. Adding a stall can have a significant performance impact during regular execution. To avoid ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c9250e278c6c | unity_docs | rendering | Explain 'Control occlusion in areas with Occlusion Portals' in Unity. | An Occlusion Portal can either be open or closed. When an Occlusion Portal is closed, it occludes other
GameObjects
. When an Occlusion Portal is open, it does not occlude other GameObjects.
If you have a GameObject in your Scene that has an open and a closed state (such as a door), you can create an Occlusion Portal t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0ead277e77c3 | unity_docs | editor | In Unity's 'Model file formats reference', what is 'Unsupported model file formats' and how does it work? | Unity doesn’t provide built-in support for Cinema4D files. To use Cinema4D files in Unity, export them from the proprietary software as.fbx
files.
Assets saved as.ma
,.mb
,.max
,.c4d
, or.blend
files fail to import unless you have the corresponding 3D modeling software installed on your computer. This means that everyb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6db73c5f5e8 | unity_docs | editor | What is `Device.Application.systemLanguage` in Unity? Explain its purpose and usage. | Application.systemLanguage
public static
SystemLanguage
systemLanguage
;
Description
This has the same functionality as
Application.systemLanguage
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4715776caebd | unity_docs | scripting | What is `HDROutputSettings.graphicsFormat` in Unity? Explain its purpose and usage. | HDROutputSettings.graphicsFormat
public
Experimental.Rendering.GraphicsFormat
graphicsFormat
;
Description
The
GraphicsFormat
of the display buffer for the active HDR display.
Accessing this member results in an exception if HDR is not available on the display. Use
HDROutputSettings.available
for the disp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_25558a77ee46 | unity_docs | rendering | Show me a Unity code example for 'Batch meshes at runtime'. | ayer
.
In the
Other Settings
section, enable
Dynamic Batching
.
Dynamic batching transforms all geometry into world space. To disable dynamic batching in a custom shader so you can access object space, enable
Disable batching
in the
Shader Import Settings
window of the shader.
You can also disable batching by setting t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f7cb82b9d426 | unity_docs | scripting | What is `IDataModeController.dataModeChanged` in Unity? Explain its purpose and usage. | IDataModeController.dataModeChanged
Parameters
Parameter
Description
value
DataModeChangeEventArgs
.
Description
Event for subscribing to
DataMode
changes.
This method accepts
DataModeChangeEventArgs
. You can register to this method to update the contents of the window for the given data mode for example. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e14b3a713980 | unity_docs | rendering | Show me a Unity C# example demonstrating `Material.mainTextureOffset`. | Texture]
ShaderLab Properties attribute
to make Unity consider a texture with a different property name to be the main texture.
This is the same as calling
Material.GetTextureOffset
or
Material.SetTextureOffset
with the property name of the main texture as a parameter.
Additional resources:
SetTextureOffset
,
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7910b31e3b8 | unity_docs | rendering | What is `Tilemaps.TilemapRenderer.Mode.Individual` in Unity? Explain its purpose and usage. | TilemapRenderer.Mode.Individual
Description
Sends each
Sprite
from the
Tilemap
to be rendered individually.
Use this mode if each
Sprite
on the
Tilemap
needs to interact with other Renderers, for example due to sorting. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69e3799e654d | unity_docs | rendering | What is `Rendering.GraphicsTextureDescriptor.height` in Unity? Explain its purpose and usage. | GraphicsTextureDescriptor.height
public int
height
;
Description
The height of the GraphicsTexture in pixels when Unity uploads it to the GPU.
Additional resources:
GraphicsTextureDescriptor.width
,
GraphicsTextureDescriptor.depth
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4d3a33a9ac9 | unity_docs | rendering | What is `TextureImporter.ReadTextureSettings` in Unity? Explain its purpose and usage. | TextureImporter.ReadTextureSettings
Declaration
public void
ReadTextureSettings
(
TextureImporterSettings
dest
);
Description
Read texture settings into
TextureImporterSettings
class.
Additional resources:
TextureImporter.SetTextureSettings
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83bfd8a648f8 | unity_docs | networking | What is `Unity.Android.Gradle.Manifest.DocumentLaunchMode` in Unity? Explain its purpose and usage. | DocumentLaunchMode
enumeration
Description
Mirrors the
DocumentLaunchMode
enum.
For more information about the attribute, see Android's documentation:
DocumentLaunchMode attribute
Properties
Property
Description
Null
Attribute is not set and will not appear in the element.
IntoExisting
Mirrors android:do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f1377dc3c29 | unity_docs | ui | What is `UIElements.VisualElement.worldTransform` in Unity? Explain its purpose and usage. | VisualElement.worldTransform
public
Matrix4x4
worldTransform
;
Description
Returns a matrix that cumulates the following operations (in order):
-Local Scaling
-Local Rotation
-Local Translation
-Layout Translation
-Parent
worldTransform
(recursive definition - consider identity when there is no parent)... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0dab8d6d6bf | unity_docs | physics | What is `SurfaceEffector2D.useFriction` in Unity? Explain its purpose and usage. | SurfaceEffector2D.useFriction
public bool
useFriction
;
Description
Should friction be used for any contact with the surface?
When false, no friction is used from any assigned physics material. When true, any existing friction is used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_060d5fd3c119 | unity_docs | scripting | What is `GUI.WindowFunction` in Unity? Explain its purpose and usage. | GUI.WindowFunction
Declaration
public delegate void
WindowFunction
(int
id
);
Description
Callback to draw GUI within a window (used with
GUI.Window
).
This function takes the ID number of the window to be drawn. Its body should contain GUI calls to display the window, much like a standard OnGUI function. Thi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c738fa25becd | unity_docs | editor | What is `EditorStyles.inspectorDefaultMargins` in Unity? Explain its purpose and usage. | EditorStyles.inspectorDefaultMargins
public static
GUIStyle
inspectorDefaultMargins
;
Description
Wrap content in a vertical group with this style to get the default margins used in the Inspector.
By default, content in the Inspector has a large left margin and a small right margin. For a consistent look, the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_25f40739b5de_doc_4 | github | scripting | What does `Destroy` do in this Unity script? Explain its purpose and signature. | Destroys the specified object and removes it from the active and released objects lists.The object to be destroyed.
Signature:
```csharp
internal void Destroy(T obj)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_af66e121e2bc | unity_docs | ui | What is `Screen.safeArea` in Unity? Explain its purpose and usage. | Screen.safeArea
public static
Rect
safeArea
;
Description
Returns the safe area of the screen in pixels (Read Only).
On some displays, certain areas of the screen might not be visible to the user.
This might be because the display's shape is non-rectangular or in the case of TV displays, it can be caused by o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4dfb91018280 | unity_docs | rendering | What is `ShaderData.Pass.HasShaderStage` in Unity? Explain its purpose and usage. | ShaderData.Pass.HasShaderStage
Declaration
public bool
HasShaderStage
(
Rendering.ShaderType
shaderType
);
Parameters
Parameter
Description
shaderType
The shader stage to check.
Returns
bool
Returns true if the shader stage is present in the pass. Otherwise, returns false.
Description
Checks whether... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9abdbe89fa5 | unity_docs | scripting | Show me a Unity C# example demonstrating `QualitySettings.DecreaseLevel`. | QualitySettings.DecreaseLevel
Declaration
public static void
DecreaseLevel
(bool
applyExpensiveChanges
= false);
Parameters
Parameter
Description
applyExpensiveChanges
Should expensive changes be applied (Anti-aliasing etc).
Description
Decrease the current quality level.
```csharp
using UnityEngine;pub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae1d1091523a | unity_docs | physics | What is `PhysicsVisualizationSettings.showAllContacts` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.showAllContacts
public static bool
showAllContacts
;
Description
Whether the
PhysicsDebugWindow
visualizes all contacts.
If you set this property to false, only the following Colliders report collisions to the
PhysicsDebugWindow
: physics objects that have MonoBehaviour scripts w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_434948da4bd7 | unity_docs | editor | Show me a Unity C# example demonstrating `ShortcutManagement.ShortcutManager.RegisterTag`. | );
Declaration
public static void
RegisterTag
(Enum
e
);
Parameters
Parameter
Description
tag
Context string identifier.
e
Context enum identifier.
Description
Registers the tag as a custom context used to filter shortcuts after a window context is determined.
Use this method to define contexts that sp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fc831b46adf | unity_docs | editor | Show me a Unity C# example demonstrating `InitializeOnLoadMethodAttribute`. | InitializeOnLoadMethodAttribute
class in
UnityEditor
Description
Allow an editor class method to be initialized when Unity loads without action from the user.
```csharp
using UnityEngine;
using UnityEditor;class MyClass
{
[InitializeOnLoadMethod]
static void OnProjectLoadedInEditor()
{
Debug.Log("Project load... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bee0c5504d26 | unity_docs | input | Show me a Unity C# example demonstrating `GUIUtility.keyboardControl`. | GUIUtility.keyboardControl
public static int
keyboardControl
;
Description
The controlID of the control that has keyboard focus.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Click on the text field to see the id of the control. string str = "A String!";
void OnGUI()
{
str = GUILayou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_039254233c4c | unity_docs | scripting | What is `Experimental.GraphView.GraphView.elementsRemovedFromStackNode` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.elementsRemovedFromStackNode
public Action<StackNode,IEnumerable<GraphElement>>
elementsRemovedFromStackNode
;
Description
Callback for when GraphElements are removed from a StackNode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d2445160f0c | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.UsesLibrary` in Unity? Explain its purpose and usage. | UsesLibrary
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<uses-library>
Android Manifest element.
For more information about the element, see Android's documentation:
UsesLibrary element
Properties
Property
Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7f1988713a12 | unity_docs | rendering | Show me a Unity code example for 'Initialize a BatchRendererGroup object in URP'. | urst jobs. The OnPerformCulling callback should return a JobHandle that completes after the jobs write the output into the BatchCullingOutput parameter. If your implementation doesn’t use jobs, you can return an empty JobHandle.
See the following code sample for an example of how to create a BatchRendererGroup object a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8171a4fd928c | unity_docs | scripting | What is `UIElements.EnumFlagsField` in Unity? Explain its purpose and usage. | EnumFlagsField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.BaseMaskField_1
Description
Makes a dropdown for switching between enum flag values that are marked with the Flags attribute.
An option for the value 0 with name "Nothing" and an option for the value ~0 (that is, all bits set) with t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4273cb48ec64 | unity_docs | physics | What is `Collider.excludeLayers` in Unity? Explain its purpose and usage. | Collider.excludeLayers
public
LayerMask
excludeLayers
;
Description
The additional layers that this
Collider
should exclude when deciding if the
Collider
can contact another
Collider
.
The Layer Collision Matrix defines which layers can contact other layers. Use this property to specify additional layers... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_61e4637d52a9 | unity_docs | math | Show me a Unity code example for 'Programming with the Quaternion class'. | e Euler angles from a quaternion, if you retrieve, modify and re-apply, problems are likely to arise.
You can read more detail about exactly how these problems can arise in the
eulerAngles script reference page
.
Here are some examples of mistakes commonly made using a hypothetical example of trying to rotate a GameObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2c144736108 | unity_docs | editor | Show me a Unity C# example demonstrating `Callbacks.RunBeforeClassAttribute`. | s a dependency graph and uses topological sorting to ensure that all dependencies are run in sequence based on their dependencies. If callbacks dependencies are not present in the project then the instruction will be ignored during the generation of the dependency graph.
Note:
Defining callback dependencies is current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b470704e652d | unity_docs | editor | Show me a Unity C# example demonstrating `Handles.Disc`. | Returns
Quaternion
The new rotation value modified by the user's interaction with the handle. If the user has not moved the handle, it will return the same value as you passed into the function.
Description
Make a 3D disc that can be dragged with the mouse.
Note:
Use
HandleUtility.GetHandleSize
where you mig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae00091b0d73 | unity_docs | rendering | Give me an overview of the `WaitForEndOfFrame` class in Unity. | WaitForEndOfFrame
class in
UnityEngine
/
Inherits from:
YieldInstruction
/
Implemented in:
UnityEngine.CoreModule
Description
Suspends a coroutine until the end of the frame after Unity has rendered every Camera and GUI, just before displaying the frame on screen.
WaitForEndOfFrame
can only be used with a
y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9bca43613a2f | unity_docs | xr | Show me a Unity C# example demonstrating `BlendShapeBufferRange`. | shape vertex data in a
GraphicsBuffer
.
When you call
Mesh.GetBlendShapeBuffer
with
BlendShapeBufferLayout.PerShape
, Unity returns a
GraphicsBuffer
that contains blend shape vertex data, ordered by blend shape.
When you call
Mesh.GetBlendShapeBufferRange
for a given blend shape, Unity returns this struct. Use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2f99b94a2732 | unity_docs | rendering | In Unity's 'Optimize shadow rendering in URP', what is 'Use shadow cascades' and how does it work? | Use the
shadow cascades
feature to improve the visual fidelity of shadows without increasing the shadow map resolution.
Consider the
performance impact of shadow cascades
when selecting the
Cascade Count
value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab3f0517685c | unity_docs | editor | What is `Device.SystemInfo.supportsAsyncCompute` in Unity? Explain its purpose and usage. | SystemInfo.supportsAsyncCompute
public static bool
supportsAsyncCompute
;
Description
This has the same functionality as
SystemInfo.supportsAsyncCompute
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a40c5a0916bf | unity_docs | editor | What is `SceneViewCameraWindow` in Unity? Explain its purpose and usage. | SceneViewCameraWindow
class in
UnityEditor
/
Inherits from:
PopupWindowContent
Description
Use this class to instantiate a
SceneViewCameraWindow
window.
The
SceneViewCameraWindow
window displays settings for the
SceneView
camera.
Constructors
Constructor
Description
SceneViewCameraWindow
Creates an in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba5ca2e2ac9b | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetAllBuildPhasesForTarget`. | ing
targetGuid
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
Returns
string[]
Returns all of the build phases for the specified target.
Description
Returns all build phases for the specified target.
You can query the type and name... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_9 | github | scripting | What does `OnEnableAsObservable` do in this Unity script? Explain its purpose and signature. | This function is called when the object becomes enabled and active.
Signature:
```csharp
public static IObservable<Unit> OnEnableAsObservable(this Component component)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_c65020c3ee66 | unity_docs | scripting | What is `Color32.r` in Unity? Explain its purpose and usage. | Color32.r
public byte
r
;
Description
Red component of the color.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
Color32 color = Color.white;
void Start()
{
color.r = 0;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bad56db59e38 | unity_docs | ui | Show me a Unity C# example demonstrating `EditorWindow.saveChangesMessage`. | ow.hasUnsavedChanges
and override the
EditorWindow.SaveChanges
method.
This message shows exactly as you have written it. This message presents to users who have unsaved changes, if they attempt to close the window or tab with this EditorWindow.
The save changes message might combine with other messages from other w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b6290da28a7 | unity_docs | xr | What is `SubsystemManager` in Unity? Explain its purpose and usage. | SubsystemManager
class in
UnityEngine
/
Implemented in:
UnityEngine.SubsystemsModule
Description
Gives access to subsystems which provide additional functionality through plugins.
Provides the ability to query for SubsystemDescriptors which enumerate features. Given an SubsystemDescriptor, you can create an Sub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f4108c174bf7 | unity_docs | editor | What is `Profiling.RawFrameDataView.GetSampleChildrenCountRecursive` in Unity? Explain its purpose and usage. | RawFrameDataView.GetSampleChildrenCountRecursive
Declaration
public int
GetSampleChildrenCountRecursive
(int
sampleIndex
);
Parameters
Parameter
Description
sampleIndex
Index of the Profiler sample.
Returns
int
Returns amount of direct and indirect child samples.
Description
Gets amount of direct and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d2b23aa0dcb | unity_docs | editor | What is `BuildOptions.SymlinkSources` in Unity? Explain its purpose and usage. | BuildOptions.SymlinkSources
Description
Symlink sources when generating the project. This is useful if you're changing source files inside the generated project and want to bring the changes back into your Unity project or a package.
This option affects sources in both Unity projects and packages. Only the followin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d43ff178907 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetBaseReferenceForConfig`. | ceForConfig
Declaration
public string
GetBaseReferenceForConfig
(string
configGuid
);
Parameters
Parameter
Description
configGuid
The GUID of the build configuration as returned by
BuildConfigByName
.
Returns
string
The GUID of the configuration file being used as the base reference.
Description
Get... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3bc233f79cae | unity_docs | ui | Explain 'Click events' in Unity. | A ClickEvent occurs when the user clicks the left mouse button (or the first button on a pointing device) over a VisualElement.
A click consists of a pointer down event followed by a pointer up event on the same VisualElement. The pointer is allowed to move between the two events, as long as the down and up events occu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abf925b81bc2 | unity_docs | xr | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerSummaryMetrics.AverageBandwidthMBPerSecond` in Unity? Explain its purpose and usage. | AsyncReadManagerSummaryMetrics.AverageBandwidthMBPerSecond
public float
AverageBandwidthMBPerSecond
;
Description
The mean rate of reading of data (bandwidth), in Mbps, for read request metrics included in the summary calculation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f0f797f18bc | unity_docs | ui | What is `UIElements.ToggleButtonGroupStatePropertiesAttribute` in Unity? Explain its purpose and usage. | ToggleButtonGroupStatePropertiesAttribute
class in
UnityEngine.UIElements
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.UIElementsModule
Description
Defines how a serialized
ToggleButtonGroupState
will be initialized in the inspector.
Properties
Property
Description
allowEmptySelect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3452f254e9a | unity_docs | input | What is `XR.XRInputSubsystem.TryRecenter` in Unity? Explain its purpose and usage. | XRInputSubsystem.TryRecenter
Declaration
public bool
TryRecenter
();
Returns
bool
True if the method recenters the XRInputSubsystem. Returns false otherwise.
Description
Centers the tracking features on all
InputDevice
s to the current position and orientation of the head-mounted device.
This can fail de... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5b96ec760e07_doc_1 | github | scripting | What does `StartCoroutine` do in this Unity script? Explain its purpose and signature. | Starts a coroutine.The coroutine
Signature:
```csharp
protected Coroutine StartCoroutine(IEnumerator routine)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_8ec3017a208c | unity_docs | rendering | What are the parameters of `TerrainTools.TerrainPaintUtility.BeginPaintTexture` in Unity? | Returns PaintContext PaintContext containing the combined alphamap data for the specified region. Description Helper function to set up a PaintContext for modifying the alphamap of one or more Terrain tiles. BeginPaintTexture identifies all of the alphamap pixels that are within extraBorderPixels of the bounds rectangl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6aaba5713eb | unity_docs | scripting | What is `SceneManagement.EditorSceneManager.SceneDirtiedCallback` in Unity? Explain its purpose and usage. | EditorSceneManager.SceneDirtiedCallback
Declaration
public delegate void
SceneDirtiedCallback
(
SceneManagement.Scene
scene
);
Description
Callbacks of this type which have been added to the
sceneDirtied
event are called after a Scene changes from being unmodified to being modified. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6b36febeb6f4 | github | scripting | Write a Unity Editor script for New Version Release Checker | ```csharp
using System;
using System.Linq;
using System.Threading.Tasks;
using Baxter.ClusterScriptExtensions.Editor.Localization;
using UnityEditor;
using UnityEditor.PackageManager;
using UnityEngine;
using UnityEngine.Networking;
namespace Baxter.ClusterScriptExtensions.Editor.VersionChecker
{
/// <summary>
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_4601682d1838 | unity_docs | ui | Show me a Unity C# example demonstrating `EditorWindow.wantsMouseMove`. | EditorWindow.wantsMouseMove
public bool
wantsMouseMove
;
Description
Checks whether MouseMove events are received in the GUI in this Editor window.
Editor Window that detects mouse moves when the toggle button is activated and the mouse is over the window.
```csharp
// Editor Script that shows the mouse moveme... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fcfdf91af7e6 | unity_docs | rendering | What are the parameters of `Matrix4x4.Ortho` in Unity? | Returns Matrix4x4 The projection matrix. Description Create an orthogonal projection matrix. The returned matrix, when used as a Camera's projection matrix, creates a projection of
the area between left , right , top and bottom , with zNear and zFar as the near and far depth clipping
planes into a cube going from (left... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6560f75ecba5 | unity_docs | physics | What is `ControllerColliderHit.moveDirection` in Unity? Explain its purpose and usage. | ControllerColliderHit.moveDirection
public
Vector3
moveDirection
;
Description
The direction the CharacterController was moving in when the collision occured.
This is the direction that the CharacterController was moving in when the collision occured. It can be used to find a reasonable direction to apply for... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d70ff14f990b | unity_docs | rendering | What is `LightTransport.IntegrationContext` in Unity? Explain its purpose and usage. | IntegrationContext
class in
UnityEngine.LightTransport
Description
Container for integration-specific data and state shared across multiple light transport calculations.
This class contains persistent data that can be shared among different invocations of light transport integrators. It serves as a container for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11e01e722e43 | unity_docs | input | Show me a Unity C# example demonstrating `Input.touchCount`. | Input.touchCount
public static int
touchCount
;
Description
Number of touches. Guaranteed not to change throughout the frame. (Read Only)
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System pack... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f44c76701cb | unity_docs | scripting | What is `Unity.Hierarchy.HierarchyViewNodesEnumerable` in Unity? Explain its purpose and usage. | HierarchyViewNodesEnumerable
struct in
Unity.Hierarchy
/
Implemented in:
UnityEngine.HierarchyCoreModule
Description
Represent an enumerable of
HierarchyNode
with specific
HierarchyNodeFlags
.
Public Methods
Method
Description
GetEnumerator
Gets the HierarchyNode enumerator. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e0fd62c3706 | unity_docs | rendering | Show me a Unity C# example demonstrating `GUIStyleState.background`. | GUIStyleState.background
public
Texture2D
background
;
Description
The background image used by GUI elements in this given state.
See also:
scaledBackgrounds
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Assigns a texture to customStyles[0] for when the control
// is pressed down... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c50e9918fe93 | unity_docs | physics | What is `SphereCollider` in Unity? Explain its purpose and usage. | SphereCollider
class in
UnityEngine
/
Inherits from:
Collider
/
Implemented in:
UnityEngine.PhysicsModule
Description
A sphere-shaped primitive collider.
Additional resources:
BoxCollider
,
CapsuleCollider
,
PhysicsMaterial
,
Rigidbody
.
Properties
Property
Description
center
The center of the sphere... | 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.