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_man_26ddc7880711 | unity_docs | animation | Explain 'Platform and mesh considerations' in Unity. | Things to consider when building UI for different platforms and mesh tessellation.
## Consider device capabilities
Some Android devices and the Web platform can’t partially patch index buffers. If your audience uses such devices or if you target the Web platform, UI Toolkit rendering is still functional but performan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3e87af802aac | unity_docs | physics | Show me a Unity C# example demonstrating `Physics.RaycastAll`. | selectively filter which colliders are considered when casting a ray.
queryTriggerInteraction
Specifies whether this query should hit Triggers.
Returns
RaycastHit[]
An array of RaycastHit objects. Note that the order of the results is undefined.
Description
Casts a ray through the Scene and returns all hits. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e151a24bad20 | unity_docs | scripting | What is `HandleUtility.RenderPickingCallback` in Unity? Explain its purpose and usage. | HandleUtility.RenderPickingCallback
Declaration
public delegate
RenderPickingResult
RenderPickingCallback
(InAttribute)
args
);
Parameters
Parameter
Description
args
The
RenderPickingArgs
struct that provides information what to render from this callback.
Description
The delegate type to use with
Regi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01d5a1a7ac6f | unity_docs | rendering | What is `TextureImporterPlatformSettings.androidETC2FallbackOverride` in Unity? Explain its purpose and usage. | TextureImporterPlatformSettings.androidETC2FallbackOverride
public
AndroidETC2FallbackOverride
androidETC2FallbackOverride
;
Description
Override for ETC2 decompression fallback on Android devices that don't support ETC2.
Additional resources:
AndroidETC2FallbackOverride
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2531b2e48669 | unity_docs | xr | In Unity's 'Universal Windows Platform', what is 'Additional resources and examples' and how does it work? | 📖
E-Book
:
Optimize your game performance for consoles and PCs in Unity
📖
E-Book
:
Create popular shaders and visual effects with the Universal Render Pipeline
⚙️
Sample project
:
Unity Technologies GitHub: Example UWP Projects
📝
How-to guide
:
How to ensure code quality and maintainability with Roslyn analyzers
📝
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4cee643611d | unity_docs | scripting | What is `RectTransform` in Unity? Explain its purpose and usage. | RectTransform
class in
UnityEngine
/
Inherits from:
Transform
/
Implemented in:
UnityEngine.CoreModule
Description
Position, size, anchor and pivot information for a rectangle.
RectTransforms are used for GUI but can also be used for other things.
It's used to store and manipulate the position, size, and anch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0727e100fcf1 | unity_docs | rendering | What is `AssetImporters.TextureGenerator` in Unity? Explain its purpose and usage. | TextureGenerator
class in
UnityEditor.AssetImporters
Description
Experimental utilities for generating
Texture2D
.
Static Methods
Method
Description
GenerateTexture
Generates Texture2D and Sprite Assets based on the settings provided. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31e428dd7edf | unity_docs | scripting | Show me a Unity C# example demonstrating `SerializeField`. | ttribute to them.
Unity serializes all your script components, reloads the new assemblies, and recreates your script components from the serialized versions. This serialization is done with an internal Unity serialization system; not with .NET's serialization functionality.
For a full reference of what Unity can serial... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca7f8bf53fef | unity_docs | rendering | Give me an overview of the `ParticleSystemCustomDataMode` class in Unity. | ParticleSystemCustomDataMode
enumeration
Description
Which mode CustomDataModule uses to generate its data.
Properties
Property
Description
Disabled
Don't generate any data.
Vector
Generate data using MinMaxCurve.
Color
Generate data using MinMaxGradient. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c3e66b5d066 | unity_docs | ui | Show me a Unity C# example demonstrating `GUILayout.VerticalSlider`. | erThumb
style from the current
GUISkin
is used.
options
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the
style
.
Returns
float
The value that has been set by the user.
Description
A vertical slider the user can drag... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e5088d64ba4 | unity_docs | editor | What is `iOS.Xcode.PBXProject.BuildConfigNames` in Unity? Explain its purpose and usage. | PBXProject.BuildConfigNames
Declaration
public IEnumerable<string>
BuildConfigNames
();
Returns
IEnumerable<string>
An array of build config names.
Description
Returns the names of the build configurations available in the project.
The number and names of the build configurations is a project-wide setting... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6e6c7d07c83e_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Gets or sets a value indicating whether this pool is for MonoBehaviour-based objects.
Signature:
```csharp
public bool IsMono
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_3f01e8934f27 | unity_docs | editor | Explain 'Deprecated packages' in Unity. | Packages that reach their end of life are no longer supported in Unity Editors where they’re labeled as deprecated. You shouldn’t use deprecated packages, because they might be nonfunctional or unsafe to use.
There are two deprecated labels, to distinguish two variants:
Deprecation variant Label Description
Unity Packa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4f9f28bd6bed | github | scripting | Write a Unity C# script called System Monitoring Info Type | ```csharp
using com.rayneo.xr.extensions;
using System;
using UnityEngine;
namespace RayNeo.API
{
/// <summary>
/// 获取当前Activity
/// </summary>
public static class PlatformAndroid
{
public const string PackageRootPath = "com.rayneo.openxradapter";
public const string SupportPackage... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d60968545f9f | unity_docs | performance | What is `Compilation.ScriptCompilerOptions.CodeOptimization` in Unity? Explain its purpose and usage. | ScriptCompilerOptions.CodeOptimization
public
Compilation.CodeOptimization
CodeOptimization
;
Description
Indicates whether performance optimization is enabled for the assembly
Set this property to true to enable performance optimization for the assembly. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_73e42575aaba | unity_docs | scripting | Explain 'Preserving code using annotations' in Unity. | You can use annotations to prevent the Unity linker from stripping specific sections of your code. This is helpful if your application produces runtime code which doesn’t exist when Unity performs the static analysis; for example, through
reflection
. Annotations either provide general guidance to the Unity linker abou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91d2d4cc128f | unity_docs | editor | What is `Android.UserBuildSettings.DebugSymbols.format` in Unity? Explain its purpose and usage. | UserBuildSettings.DebugSymbols.format
public static
Unity.Android.Types.DebugSymbolFormat
format
;
Description
Specifies the format for the symbol package.
```csharp
using UnityEditor.Android;
using Unity.Android.Types;public class Settings
{
public void Setup()
{
UserBuildSettings.DebugSymbols.format = De... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00a6577dfbf7 | unity_docs | scripting | What is `ObjectChangeEventStream.GetChangeGameObjectStructureEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.GetChangeGameObjectStructureEvent
Declaration
public void
GetChangeGameObjectStructureEvent
(int
eventIdx
,
out
ChangeGameObjectStructureEventArgs
data
);
Parameters
Parameter
Description
eventIdx
The index of the event to get the data for.
data
The data associated with the event... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8d6bc232db9 | unity_docs | scripting | What are the parameters of `Transform.Find` in Unity? | Returns Transform The found child transform. Null if child with matching name isn't found. Description Finds a child by name n and returns it. If no child with name n can be found, null is returned.
If n contains a '/' character it will access the Transform in the hierarchy like a path name. Note: Find does not work pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14a369d55ef7 | unity_docs | scripting | What is `GUI.TextField` in Unity? Explain its purpose and usage. | GUI.TextField
Declaration
public static string
TextField
(
Rect
position
,
string
text
);
Declaration
public static string
TextField
(
Rect
position
,
string
text
,
int
maxLength
);
Declaration
public static string
TextField
(
Rect
position
,
string
text
,
GUIStyle
style
);
Declaration
public... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b52c2caca738 | unity_docs | editor | What is `Material.parent` in Unity? Explain its purpose and usage. | Material.parent
public
Material
parent
;
Description
Parent of this material.
Materials with a non null parent are referred to as material variants.
Material variants will inherit all their properties from their parent, and can override them on a per property basis. Changing the value of a property of a mate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_12 | github | scripting | What does `LateUpdateAsObservable` do in this Unity script? Explain its purpose and signature. | LateUpdate is called every frame, if the Behaviour is enabled.
Signature:
```csharp
public static IObservable<Unit> LateUpdateAsObservable(this Component component)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_09327d62dacc | unity_docs | scripting | What is `Color.white` in Unity? Explain its purpose and usage. | Color.white
public static
Color
white
;
Description
Solid white. RGBA is (1, 1, 1, 1).
```csharp
//Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attached).
//This script changes the Color of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_833896ed5dd1 | unity_docs | scripting | What is `MeshFilter.sharedMesh` in Unity? Explain its purpose and usage. | MeshFilter.sharedMesh
public
Mesh
sharedMesh
;
Description
Returns the shared mesh of the mesh filter.
It is recommended to use this function only for
reading mesh data
and not for writing, since you might modify imported assets and all objects
that use this mesh will be affected.
Also, be aware that is no... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e2fa59fa147 | unity_docs | scripting | What is `PlayerPrefs.SetInt` in Unity? Explain its purpose and usage. | PlayerPrefs.SetInt
Declaration
public static void
SetInt
(string
key
,
int
value
);
Description
Sets a single integer value for the preference identified by the given key. You can use
PlayerPrefs.GetInt
to retrieve this value.
The following example passes the
KeyName
and
Value
variables to a function ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_717baba47f3d | unity_docs | editor | In Unity's 'AssetBundle and Addressables determinism', what is 'AssetBundle determinism best practices' and how does it work? | When building AssetBundles, every referenced asset and dependency must remain identical. Avoid timestamps or build-date suffixes in AssetBundle names and use static identifiers or semantic versions.
By design, you must build AssetBundles deterministically, independent of whether
incremental builds
are enabled.
If clear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80351a96b1fb | unity_docs | scripting | Give me an overview of the `AndroidActivityIndicatorStyle` class in Unity. | AndroidActivityIndicatorStyle
enumeration
Description
ActivityIndicator Style (Android Specific).
Properties
Property
Description
DontShow
Do not show ActivityIndicator.
Large
Large (android.R.attr.progressBarStyleLarge).
InversedLarge
Large Inversed (android.R.attr.progressBarStyleLargeInverse).
Small
Small... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6a9fdbea4a11 | unity_docs | scripting | What is `Rendering.BatchCullingContext.viewType` in Unity? Explain its purpose and usage. | BatchCullingContext.viewType
public
Rendering.BatchCullingViewType
viewType
;
Description
The type of the view from which the culling is invoked. Usage examples: skip culling, take different culling paths depending on the view type, etc. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5aba9a679608 | unity_docs | physics | Explain 'Collider surface friction' in Unity. | In real-world physics, friction is a force that impedes motion between two surfaces that are in contact with each other. For example, ice has a low-friction surface, which allows objects to slide easily across its surface. Rubber has a high-friction surface, which prevents objects from sliding across its surface.
In th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a1f0b403ea96 | unity_docs | ui | In Unity's 'USS transition', what is 'Transitions for an inherited property' and how does it work? | For visual elements in a hierarchy, USS transitions behave the same as
CSS transitions
. If you set transitions for an inherited property, such as color , transitions applied to the parent elements cascade to the child elements. To find out which property is inherited, refer to
USS property reference
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_26bb0ec25f5f | unity_docs | physics | Show me a Unity C# example demonstrating `Physics.BakeMesh`. | ansform allows mesh sharing if:
Its scaling is not negative and is not skewed, or
Its scaling is negative but only when MeshCollider is not convex
Note: When you add a
MeshCollider
component to a GameObject with a
MeshFilter
component already present, the sharedMesh property is set automatically and this might t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56242b30981e | unity_docs | scripting | What is `UIElements.Toggle.labelUssClassName` in Unity? Explain its purpose and usage. | Toggle.labelUssClassName
public static string
labelUssClassName
;
Description
USS class name for Labels in Toggle elements.
Unity adds this USS class to the
Label
sub-element of the
Toggle
if the Toggle has a Label. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_482a51aa2a29 | unity_docs | rendering | In Unity's 'Assembly definition and packages', what is 'Example file' and how does it work? | In this example, the assembly definition file uses references to its own assemblies, and an assembly that’s part of a package dependency (
HDRP
):
```
{
"name": "MyCompany.MyPackageName",
"references": [
"MyCompany.MyPackageName.Tools",
"MyCompany.MyPackageName.Planes",
"Unity.RenderPipelines.HighDefinition.Runtim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_954323360c35 | unity_docs | scripting | What is `UIElements.BaseTreeViewController.Exists` in Unity? Explain its purpose and usage. | BaseTreeViewController.Exists
Declaration
public bool
Exists
(int
id
);
Parameters
Parameter
Description
id
The id to look for.
Returns
bool
Whether an item with this id exists in the tree.
Description
Checks if an ID exists within this tree. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cb402a0a313 | unity_docs | scripting | What is `Build.Reporting.BuildResult` in Unity? Explain its purpose and usage. | BuildResult
enumeration
Description
Describes the outcome of the build process.
Properties
Property
Description
Unknown
Indicates that the outcome of the build is in an unknown state.
Succeeded
Indicates that the build completed successfully.
Failed
Indicates that the build failed.
Cancelled
Indicates that t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f5600338cf0 | unity_docs | editor | What is `EditorGUI.ToggleLeft` in Unity? Explain its purpose and usage. | EditorGUI.ToggleLeft
Declaration
public static bool
ToggleLeft
(
Rect
position
,
string
label
,
bool
value
,
GUIStyle
labelStyle
= EditorStyles.label);
Declaration
public static bool
ToggleLeft
(
Rect
position
,
GUIContent
label
,
bool
value
,
GUIStyle
labelStyle
= EditorStyles.label);
Param... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_432e4c503fb2 | unity_docs | scripting | What is `IHVImageFormatImporter` in Unity? Explain its purpose and usage. | IHVImageFormatImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
Use IHVImageFormatImporter to modify
Texture2D
import settings for Textures in IHV (Independent Hardware Vendor) formats such as .DDS and .PVR from Editor scripts.
Properties
Property
Description
filterMode
Filtering mod... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0537695481e6 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorUserBuildSettings.overrideTextureCompression`. | o understand the implications. For information on the effects of the different values, see the documentation for the
OverrideTextureCompression
enum.
The Unity editor command line argument
-overrideTextureCompression
can also be used to set this.
Additional resources:
OverrideTextureCompression
,
EditorUserBuildS... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c14afd4d90c | unity_docs | math | What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.ArrayElementAsRef` in Unity? | Returns T A reference to the value of type T at the specified index within the array. This reference allows direct manipulation of the value at its memory location. Description Obtains a reference to a value of type T in an array at a specified index in memory. The ArrayElementAsRef method allows direct access to an ar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a02e4ca2f217 | unity_docs | animation | What is `WrapMode.PingPong` in Unity? Explain its purpose and usage. | WrapMode.PingPong
Description
When time reaches the end of the animation clip, time will ping pong back between beginning and end.
It has same behaviour when playing backwards - when time reaches the beginning of the animation clip, time will ping pong back
between beginning and end. The animation will never automa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe5594e35bc3 | unity_docs | rendering | Explain 'Font Asset Creator properties reference' in Unity. | You can generate and update the font atlas with the Font Asset Creator. To generate and update the font atlas, select
Update Atlas Texture
in the Font Asset’s Inspector window.
The following table describes all the Font Asset creator properties:
Property Description Source Font File
Source font to use to generate the f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9acdd62d8430 | unity_docs | editor | Show me a Unity C# example demonstrating `Profiling.Sampler.Get`. | ific CPU Profiler label.
You can use this function to get a Sampler associated with a built-in or custom label. The
name
parameter is the same you can see in Hierarchy view of the
Profiler Window
.
If label with the specified
name
parameter does not exist or not available in the Player, an invalid Sampler object ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_084fd0091e04 | unity_docs | scripting | What is `SerializedProperty.CountRemaining` in Unity? Explain its purpose and usage. | SerializedProperty.CountRemaining
Declaration
public int
CountRemaining
();
Description
Count remaining visible properties.
This is useful for allocating height for drawing this property and all the following ones. Note that calling this method will move the property forward to the end of the
SerializedObject
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_10dc1c847742 | unity_docs | math | Explain 'Introduction to raycasting' in Unity. | In the section
Understanding the View Frustum
, it was explained that any point in the
camera
’s view corresponds to a line in world space. It is sometimes useful to have a mathematical representation of that line and Unity can provide this in the form of a Ray object. The Ray always corresponds to a point in the view,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37e5b935c042 | unity_docs | scripting | What is `SceneTemplate.SceneTemplateService` in Unity? Explain its purpose and usage. | SceneTemplateService
class in
UnityEditor.SceneTemplate
Description
A utility class that manages
SceneTemplateAsset
instantiation.
Static Methods
Method
Description
CreateSceneTemplate
Creates a new Scene template at a specific path. The template is not bound to a Scene.
CreateTemplateFromScene
Creates a ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0b973bbbe09a_doc_5 | github | scripting | What does `AddClippable` do in this Unity script? Explain its purpose and signature. | Add a IClippable to be tracked by the mask.Add the clippable object for this mask
Signature:
```csharp
public void AddClippable(IClippable clippable)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_c0dd761dc9b7 | unity_docs | rendering | Show me a Unity C# example demonstrating `Profiling.FrameDataView.GetGfxResourceInfo`. | source in the Profiler capture. On the Render Thread, the Profiler capture can be associated with a graphics resource representing a Texture, RenderTexture, Mesh Asset, or other graphics resource. This information is included as part of the sample metadata; you can use the
RawFrameDataView.GetSampleMetadataAsInt
or
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8d88f932d757 | github | scripting | Write a Unity C# script called Input System | ```csharp
using TinyECS.Interfaces;
using UnityEngine;
/// <summary>
/// This is our first system which processes user's input. All systems
/// which implements IUpdateSystem are executed every frame
/// </summary>
public class InputSystem: IUpdateSystem
{
protected IWorldContext mWorldContext;
protected I... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_6341b2830e9f | unity_docs | scripting | What is `Cache.expirationDelay` in Unity? Explain its purpose and usage. | Cache.expirationDelay
public int
expirationDelay
;
Description
The number of seconds that an AssetBundle may remain unused in the cache before it is automatically deleted.
This value defaults to 150 days (12,960,000 seconds).
Lower values will cause the cache to be cleaned more aggressively in order to minimize... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ce33f6fe298 | unity_docs | math | What are the parameters of `GeometryUtility.CalculateBounds` in Unity? | Returns Bounds Calculates the axis-aligned bounding box. Description Calculates the bounding box from the given array of positions and the transformation matrix. GeometryUtility.CalculateBounds generates a Bounds bounding box. The positions parameter stores a 3d point array. Each point is inside the generated axis-alig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4482058a49de | unity_docs | scripting | What is `Profiling.FrameDataView.ResolveMethodInfo` in Unity? Explain its purpose and usage. | FrameDataView.ResolveMethodInfo
Declaration
public
Profiling.FrameDataView.MethodInfo
ResolveMethodInfo
(ulong
addr
);
Parameters
Parameter
Description
addr
Instruction pointer.
Returns
MethodInfo
Method name and location information.
Description
Returns method name and location information for the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80c5eca9fb7b | unity_docs | math | What is `BoundsInt.zMin` in Unity? Explain its purpose and usage. | BoundsInt.zMin
public int
zMin
;
Description
The minimal z point of the box.
Only points with a z component greater than or equal to this value are contained in the box.
Sets the minimum value of
BoundsInt
's z point. If you enter a minimum value that is greater than the current maximum value, then the entere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_958c7c7cea02 | unity_docs | editor | Explain 'View data persistence' in Unity. | View data persistence preserves the view data associated with
visual elements
in the UI. View data refers to the state of the user interface that’s not part of the underlying data model of the UI. For example, view data could include the scroll position of a scroll bar or the selection of a list.
View data persistence ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_76cb3f92f8b8 | unity_docs | rendering | What is `Shader.PropertyToID` in Unity? Explain its purpose and usage. | Shader.PropertyToID
Declaration
public static int
PropertyToID
(string
name
);
Parameters
Parameter
Description
name
Shader property name.
Returns
int
Unique integer for the name.
Description
Gets unique identifier for a shader property name.
Using property identifiers is more efficient than passin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8ca073c246a | unity_docs | rendering | Show me a Unity C# example demonstrating `Experimental.Rendering.GraphicsStateCollection.BeginTrace`. | erimental and might be changed or removed in the future.
GraphicsStateCollection.BeginTrace
Declaration
public bool
BeginTrace
();
Returns
bool
Returns true if tracing successfully started, false otherwise.
Description
Start tracing shader variants and graphics states encountered at runtime.
Graphics sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_beba498a0583 | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.Free`. | prevent memory leaks, which can lead to reduced application performance or system instability. Always ensure that any allocated memory is freed when it is no longer needed.
Exercise caution when using this method. Improper deallocation of memory can result in undefined behavior and application crashes. The allocator us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2488d84e3cef | unity_docs | scripting | What is `SceneManagement.Stage.FindComponentOfType` in Unity? Explain its purpose and usage. | Stage.FindComponentOfType
Declaration
public T
FindComponentOfType
();
Returns
T
This returns the object that matches the specified type. It returns null if no object matches the type.
Description
Returns the first active loaded object of the given type. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_caa705f43c9f | unity_docs | scripting | What is `Android.AndroidAssetPackInfo.error` in Unity? Explain its purpose and usage. | AndroidAssetPackInfo.error
public
Android.AndroidAssetPackError
error
;
Description
Indicates an error which the device encountered when downloading the Android asset pack.
The default value is AndroidAssetPackError.NoError which indicates no errors.
Read-only.
Additional resources:
AndroidAssetPackError
,
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd548198cd24 | unity_docs | scripting | What is `NVIDIA.GraphicsDeviceFeature` in Unity? Explain its purpose and usage. | GraphicsDeviceFeature
enumeration
Description
Lists every feature ID the
GraphicsDevice
API supports. For now, this only includes
Deep Learning Super Sampling
(DLSS). To check if the device supports a feature, call
GraphicsDevice.IsFeatureAvailable
.
Properties
Property
Description
DLSS
Represents the Deep... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02ff1fe558c3 | unity_docs | math | Show me a Unity C# example demonstrating `EditorJsonUtility.FromJsonOverwrite`. | e method and overwritten. You can avoid this by making your own boxed copy of the struct to pass into the method and then copying the values back again after the method returns. See example below.
Even when you do this, Unity’s built-in structs (such as
Vector3
or
Bounds
) cannot be directly passed to the method, so... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a83dce92b724 | unity_docs | editor | What is `BuildPipeline.IsBuildTargetSupported` in Unity? Explain its purpose and usage. | BuildPipeline.IsBuildTargetSupported
Declaration
public static bool
IsBuildTargetSupported
(
BuildTargetGroup
buildTargetGroup
,
BuildTarget
target
);
Parameters
Parameter
Description
buildTargetGroup
build target group
target
build target
Description
Returns true if the specified build target is cur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_14859842e43e | github | scripting | Write a Unity C# XR/VR script for Update Control Text | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
public class UpdateControlText : MonoBehaviour
{
[SerializeField]
TextMesh m_TextMesh = new TextMesh();
public void OnSliderEvent(float value)
{
if (m_TextMesh)
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1135d8a5c36 | unity_docs | editor | What is `EditorWindowTitleAttribute.icon` in Unity? Explain its purpose and usage. | EditorWindowTitleAttribute.icon
public string
icon
;
Description
Specifies the path to an Editor window's default icon.
The path must be in the Project, and must include the default icon's name and file extension. For example:
Assets/Editor/MyIcons/MyWindowIcon.png
Any icon variants must be in the same folde... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1df6912b9e55 | unity_docs | scripting | What is `PrimitiveType` in Unity? Explain its purpose and usage. | PrimitiveType
enumeration
Description
The various primitives that can be created using the
GameObject.CreatePrimitive
function.
Additional resources:
GameObject.CreatePrimitive
.
Properties
Property
Description
Sphere
A sphere primitive.
Capsule
A capsule primitive.
Cylinder
A cylinder primitive.
Cube
A ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58dadd5d7bfa | unity_docs | scripting | What is `UIElements.LayerMaskField` in Unity? Explain its purpose and usage. | LayerMaskField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.MaskField
Description
A LayerMaskField editor. For more information, refer to
UXML element LayerMaskField
.
Static Properties
Property
Description
inputUssClassName
USS class name of input elements in elements of this type.
l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_86c8776b9803 | unity_docs | input | In Unity's 'GameActivity requirements and compatibility', what is 'AndroidX' and how does it work? | GameActivity requires the following AndroidX Gradle dependencies:
androidx.appcompat:appcompat
androidx.games:games-activity
androidx.core:core
Androidx.constraintlayout
Gradle installs AndroidX and these dependencies automatically. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32500667d7ea | unity_docs | scripting | What is `QualitySettings.GetQualityLevel` in Unity? Explain its purpose and usage. | QualitySettings.GetQualityLevel
Declaration
public static int
GetQualityLevel
();
Returns
int
Obtains the current Quality Level.
Description
Returns the current graphics quality level.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
int qualityLevel = QualitySettings.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6883852582ff | unity_docs | scripting | What is `PlayerSettings.GetIl2CppStacktraceInformation` in Unity? Explain its purpose and usage. | PlayerSettings.GetIl2CppStacktraceInformation
Declaration
public static
Il2CppStacktraceInformation
GetIl2CppStacktraceInformation
(
Build.NamedBuildTarget
buildTarget
);
Parameters
Parameter
Description
buildTarget
The
NamedBuildTarget
.
Returns
Il2CppStacktraceInformation
Returns stack trace infor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_827d7de12683 | github | scripting | Write a Unity C# audio script for Banana Tree Logic | ```csharp
using System;
using UnityEngine;
using Main.Interfaces;
using Main.ScriptableObjects;
using Main.ECS.Provider;
using Main.Enums;
namespace Main.Actor
{
sealed class BananaTreeLogic : MonoBehaviour, IUpdatable, IECSProviderUsable
{
GameSettings.BananaTreeConfig _bananaTreeConfig;
GameS... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_103347a59c12_doc_9 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Stores the used to set the turn speed of continuous turning.
Signature:
```csharp
public Slider turnSpeedSlider
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_64fc9f298b9f | unity_docs | animation | Give me an overview of the `AnimationMode` class in Unity. | AnimationMode
class in
UnityEditor
Description
AnimationMode
is used by the
AnimationWindow
to store properties modified
by the
AnimationClip
playback.
When exiting
AnimationMode
all properties are reverted to their
default state. Animated properties are also highlighted by the inspector. Use
StartAnim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a747bd5d0edc | unity_docs | physics | What is `Rendering.RayTracingAccelerationStructure.ClearInstances` in Unity? Explain its purpose and usage. | RayTracingAccelerationStructure.ClearInstances
Declaration
public void
ClearInstances
();
Description
Removes all ray tracing instances from the RayTracingAccelerationStructure.
Note that in order to reflect this action on the GPU, building the acceleration structure has to be triggered by calling
RayTracingAc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fbf083aa372a | unity_docs | scripting | What is `Experimental.GraphView.IResizable.OnStartResize` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IResizable.OnStartResize
Declaration
public void
OnStartResize
();
Description
Called when resize is started. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fbc406eacd0 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.CheckDeallocateAndThrow
Declaration
public static void
CheckDeallocateAndThrow
(
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
);
Parameters
Parameter
Description
handle
The
AtomicSafetyHandle
to check.
Description
Check if an AtomicSafetyHandle can be deallocated.
Thr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a11bc1bd9f9e | unity_docs | scripting | Give me an overview of the `PluginImporter` class in Unity. | PluginImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
Represents a plugin importer.
Properties
Property
Description
DefineConstraints
Allows you to specify a list of #define directives which controls whether your plug-in should be included.
isNativePlugin
Is plugin native or managed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d2b59578223a | unity_docs | physics | In Unity's 'Configure Rigidbody Colliders', what is 'Convex and concave collider geometry' and how does it work? | The PhysX physics system requires that any collider you place on a non-kinematic Rigidbody is convex, not concave. All primitive shapes in Unity are convex. However, Unity considers a
Mesh Collider
concave by default.
If you apply a default Mesh Collider to a non-kinematic Rigidbody, Unity throws an error at runtime. T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06b500c82847 | unity_docs | physics | What is `UIElements.BasePopupField_2.SetValueWithoutNotify` in Unity? Explain its purpose and usage. | BasePopupField<T0,T1>.SetValueWithoutNotify
Declaration
public void
SetValueWithoutNotify
(TValueType
newValue
);
Parameters
Parameter
Description
newValue
The new value.
Description
Allow changing value without triggering any change event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae122c1fa431 | unity_docs | editor | Show me a Unity C# example demonstrating `Networking.PlayerConnection.PlayerConnectionGUILayout.ConnectionTargetSelectionDropdown`. | the state of the connection for your
EditorWindow
. To get the state, use
PlayerConnectionGUIUtility.GetConnectionState
in OnEnable. Make sure you dispose of the state in OnDisable of the
EditorWindow
you use it in to avoid leaking it.
This class currently only works for the connection that the Profiling tools and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_238b91e0580c | unity_docs | math | What are the parameters of `Mesh.SetVertexBufferParams` in Unity? | Description Sets the vertex buffer size and layout. Note: This method is designed for advanced users aiming for maximum performance because it operates on the underlying mesh data structures that primarily work on raw index buffers, vertex buffers and mesh subset data. Using this method, Unity performs very little data... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_44ec73dabb70 | github | scripting | Write a Unity C# UI script for Examples Selector | ```csharp
using shadcnui.GUIComponents.Core.Base;
using shadcnui.GUIComponents.Core.Styling;
using shadcnui_examples.Examples;
using UnityEngine;
namespace shadcnui_examples.Menu
{
public class ExamplesSelector : MonoBehaviour
{
private GUIHelper guiHelper;
private Rect selectorRect = new Rect... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_e556390b638e | unity_docs | editor | Explain 'Addressables' in Unity. | com.unity.addressables
## Description
The Addressable Asset System allows the developer to ask for an asset via its address. Once an asset (e.g. a prefab) is marked "addressable", it generates an address which can be called from anywhere. Wherever the asset resides (local or remote), the system will locate it and its... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4fcd62e37913 | unity_docs | scripting | What is `Microphone.GetDeviceCaps` in Unity? Explain its purpose and usage. | Microphone.GetDeviceCaps
Declaration
public static void
GetDeviceCaps
(string
deviceName
,
out int
minFreq
,
out int
maxFreq
);
Parameters
Parameter
Description
deviceName
The name of the device.
minFreq
Returns the minimum sampling frequency of the device.
maxFreq
Returns the maximum sampling frequen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_504b74ec76bc | unity_docs | physics | Show me a Unity C# example demonstrating `PhysicsShapeGroup2D.shapeCount`. | PhysicsShapeGroup2D.shapeCount
public int
shapeCount
;
Description
The total number of
PhysicsShape2D
in the shape group. (Read Only)
```csharp
using UnityEngine;
using UnityEngine.Assertions;public class Example : MonoBehaviour
{
private const int ShapeCount = 10; void Start()
{
// Create a shape group.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3921372c3b8 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.blitType`. | PlayerSettings.Android.blitType
public static
AndroidBlitType
blitType
;
Description
Choose how content is drawn to the screen.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class BlitTypeSample : MonoBehaviour
{
[MenuItem("Build/BlitType Sample")]
public static void BuildB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2440071c42c4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rendering.RTClearFlags`. | RTClearFlags
enumeration
Description
Flags that determine which render targets Unity clears when you use
CommandBuffer.ClearRenderTarget
.
You can combine flags by using the bitwise OR operator.
```csharp
using UnityEngine;
using UnityEngine.Rendering;// Attach this script to a Camera and select a Clear Mode.
//... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58a97f423d56 | unity_docs | scripting | What is `XcodeBuildConfig` in Unity? Explain its purpose and usage. | XcodeBuildConfig
enumeration
Description
Build configurations for the Xcode project Unity generates.
Properties
Property
Description
Debug
Sets the build configuration to Debug for the Xcode project Unity generates.
Release
Sets the build configuration to Release for the Xcode project Unity generates. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eabf3274ec5e | unity_docs | rendering | What is `Shader.GetGlobalFloat` in Unity? Explain its purpose and usage. | Shader.GetGlobalFloat
Declaration
public static float
GetGlobalFloat
(string
name
);
Declaration
public static float
GetGlobalFloat
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Description
Gets ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_584e5a4d3cda | unity_docs | xr | What is `MacFullscreenMode.FullscreenWindow` in Unity? Explain its purpose and usage. | MacFullscreenMode.FullscreenWindow
Description
Fullscreen window.
In this mode, Unity will create a window which is covering the whole screen. It will always run at desktop
resolution, and other requested resolutions will be scaled up. OS UI will correctly show on top of the fullscreen
window (such as IME input win... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0d25466906a | unity_docs | scripting | What is `Video.VideoPlayer.canSetTime` in Unity? Explain its purpose and usage. | VideoPlayer.canSetTime
public bool
canSetTime
;
Description
Whether you can change the current time using the
VideoPlayer.time
or
VideoPlayer.frame
properties. (Read Only)
Seeking is not supported in all contexts. For example, seeking in a HTTP live stream.
This value is only valid after the movie has been ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9dc25c11763 | unity_docs | scripting | What are the parameters of `Color.ToString` in Unity? | Description Returns a formatted string of this color. ```csharp
using UnityEngine;public class ExampleClass : MonoBehaviour
{
void Start()
{
Color color = Color.magenta; // Print "RGBA(1.000, 0.000, 1.000, 1.000)"
print(color.ToString()); color = new Color(Random.value, Random.valu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5c446753d29 | unity_docs | scripting | What is `ImagePosition` in Unity? Explain its purpose and usage. | ImagePosition
enumeration
Description
How image and text is placed inside
GUIStyle
.
Properties
Property
Description
ImageLeft
Image is to the left of the text.
ImageAbove
Image is above the text.
ImageOnly
Only the image is displayed.
TextOnly
Only the text is displayed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21cf360c485c | unity_docs | input | Give me an overview of the `WebGLInput` class in Unity. | WebGLInput
class in
UnityEngine
/
Implemented in:
UnityEngine.WebGLModule
Description
WebGLInput provides support for WebGL specific functionalities. Important: Browsers only allow sensor input in secure contexts, which means you must use HTTPS except during development where you might use http://localhost.
Sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7eee78d2504e | unity_docs | editor | Give me an overview of the `AndroidDeviceFilterData` class in Unity. | AndroidDeviceFilterData
struct in
UnityEditor
Description
Set of parameters used to define an Android device or group of Android devices.
Specify a list of parameters to identify an Android device or set of Android devices. Enter values for one or multiple parameters. The parameter values are processed using logi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f41cb811252e | unity_docs | xr | Give me an overview of the `CharacterInfo` class in Unity. | CharacterInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.TextRenderingModule
Description
Specification for how to render a character from the font texture. See
Font.characterInfo
.
Additional resources: Example at
Font.RequestCharactersInTexture
.
Properties
Property
Description
advance
The horiz... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eea93599c0c8 | unity_docs | ui | What is `UIElements.BindingExtensions.Unbind` in Unity? Explain its purpose and usage. | BindingExtensions.Unbind
Declaration
public static void
Unbind
(
UIElements.VisualElement
element
);
Parameters
Parameter
Description
element
Root VisualElement containing IBindable fields.
Description
Disconnects all properties bound to fields in the element's hierarchy. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44e809dc1761 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.UnserializeAndPasteDelegate` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.UnserializeAndPasteDelegate
Declaration
public delegate void
UnserializeAndPasteDelegate
(string
operationName
,
string
data
);
Parameters
Parameter
Description
operationName
Name of operation for undo/redo lab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1ca7043bedc8 | unity_docs | editor | Explain 'Additional files for Roslyn analyzers and source generators' in Unity. | You can add
additional files
to your project for a Roslyn analyzer or source generator to consume. The Unity Editor recognizes files as additional files for Roslyn analyzers if they have the .additionalfile extension and are somewhere in the Assets folder or one of its subfolders.
## Naming additional files
To be pas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_556e7d2fc88d | unity_docs | scripting | What are the parameters of `Progress.Start` in Unity? | Returns int The newly created progress identifier. This identifier is used for all other APIs to update the progress status. Description This method starts a new progress indicator. ```csharp
public IEnumerator Run_TwoTasks()
{
var title1 = "Running task 1...";
var title2 = "Running task 2...";
int progress... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1de8b6bb8505_doc_2 | github | scripting | What does `CustomSamplerScope` do in this Unity script? Explain its purpose and signature. | CustomSampler を生成してサンプリングを開始します
Signature:
```csharp
public CustomSamplerScope( string name, UnityEngine.Object targetObject )
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_6e0c108aae90 | unity_docs | animation | What is `Animations.IAnimationJob.ProcessRootMotion` in Unity? Explain its purpose and usage. | IAnimationJob.ProcessRootMotion
Declaration
public void
ProcessRootMotion
(
Animations.AnimationStream
stream
);
Parameters
Parameter
Description
stream
The animation stream to work on.
Description
Defines what to do when processing the root motion.
This method is called before
IAnimationJob.ProcessAnim... | 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.