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_4c0023a73864 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnCollisionExit2D`. | on about the objects involved is reported in the Collision2D parameter passed during the call. If you don't need this information then you can declare OnCollisionExit2D without the parameter.
Note:
Collision events will be sent to disabled MonoBehaviours, to allow enabling Behaviours in response to collisions.
Additio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f9bff467b702 | unity_docs | ui | In Unity's 'Migrate from Immediate Mode GUI (IMGUI) to UI Toolkit', what is 'Immediate versus retained mode' and how does it work? | With IMGUI, you describe the UI tree when the UI is repainted within the
OnGUI()
function. You must call this function when an event enters the UI or when you repaint the UI. There is no persistent information pertaining to the UI tree between different events. Whereas, you create
visual elements
with UI Toolkit in a t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ce136630119 | unity_docs | ui | What is `UIElements.VisualElementFocusRing.GetNextFocusable` in Unity? Explain its purpose and usage. | VisualElementFocusRing.GetNextFocusable
Declaration
public
UIElements.Focusable
GetNextFocusable
(
UIElements.Focusable
currentFocusable
,
UIElements.FocusChangeDirection
direction
);
Description
Get the next element in the given direction. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f14fb0bebf9a | unity_docs | rendering | In Unity's 'Cull command in ShaderLab reference', what is 'Parameters' and how does it work? | Parameter Value Function state Back
Cull polygons that face away from the camera. This is called back-face culling.
This is the default value.
Front
Cull polygons that face towards the camera. This is called front-face culling.
Use this for turning geometry inside-out.
Off
Do not cull polygons based on the direction th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5622a7f594ae | unity_docs | rendering | What is `Rendering.ScriptableRenderContext.CreateUIOverlayRendererList` in Unity? Explain its purpose and usage. | ScriptableRenderContext.CreateUIOverlayRendererList
Declaration
public
Rendering.RendererList
CreateUIOverlayRendererList
(
Camera
camera
);
Declaration
public
Rendering.RendererList
CreateUIOverlayRendererList
(
Camera
camera
,
Rendering.UISubset
uiSubset
);
Parameters
Parameter
Description
cam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_481ea39b1063 | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.NativeDisableUnsafePtrRestrictionAttribute`. | ativeDisableUnsafePtrRestrictionAttribute
class in
Unity.Collections.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
Enable the use of unsafe pointers in jobs.
By default, unsafe pointers aren't allowed in jobs because it isn't possible for the Job Debugger to gurantee race condition free
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8dc6b5cea6f4 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.scrollSpeedMultiplier`. | ParticleSystem.NoiseModule.scrollSpeedMultiplier
public float
scrollSpeedMultiplier
;
Description
Scroll speed multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall scroll speed multiplier.
Additional resources:
ParticleSystem.NoiseModule.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6527cd06fa60 | unity_docs | scripting | Explain 'Texture optimization' in Unity. | Techniques for speeding up texture loading, and reducing how much memory textures use.
Page Description Loading textures in the background
Resources for loading textures asynchronously to prevent your application pausing when textures load.
Optimizing GPU texture memory with mipmap streaming
Use mipmap streaming to lim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7375de3ea7fc_doc_8 | github | scripting | What does `HasPackageInstalled` do in this Unity script? Explain its purpose and signature. | Lists the packages the Project depends onName of packagefirst bool returns true if the operation was successful. The second bool returnstrue if the package exists
Signature:
```csharp
public static void HasPackageInstalled(string name, Action<bool, bool> successAndHasPackage,
bool offline = false, bool inc... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_6153f0195cd2 | unity_docs | networking | What is `XR.XRMirrorViewBlitModeDesc` in Unity? Explain its purpose and usage. | XRMirrorViewBlitModeDesc
struct in
UnityEngine.XR
/
Implemented in:
UnityEngine.XRModule
Description
Struct that describes the mirror view blit mode.
Properties
Property
Description
blitMode
Mirror view blit mode Id. For details, see XRMirrorViewBlitMode. In case of provider's custom blit mode, the value wou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3210345325d5 | unity_docs | animation | What is `PlayerSettings.SplashScreen.animationBackgroundZoom` in Unity? Explain its purpose and usage. | PlayerSettings.SplashScreen.animationBackgroundZoom
public static float
animationBackgroundZoom
;
Description
The target zoom (from 0 to 1) for the background when it reaches the end of the SplashScreen animation's total duration. Only used when animationMode is
AnimationMode.Custom
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d97716c7d1b | unity_docs | editor | What is `SceneManagement.OpenSceneMode.AdditiveWithoutLoading` in Unity? Explain its purpose and usage. | OpenSceneMode.AdditiveWithoutLoading
Description
Adds a Scene to the current open Scenes without loading it. It will show up as 'unloaded' in the Hierarchy Window.
Additional resources:
EditorSceneManager.OpenScene
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c7af49d8396d | unity_docs | rendering | In Unity's 'Fallback block in ShaderLab reference', what is 'Example' and how does it work? | This example code demonstrates the syntax for creating a Shader object that has a named fallback.
```
Shader "Examples/ExampleFallback"
{
SubShader
{
// Code that defines the SubShader goes here.
Pass
{
// Code that defines the Pass goes here.
}
}
Fallback "ExampleOtherShader"
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27618550dbe8 | unity_docs | rendering | What is `RenderTextureFormat.BGR101010_XR` in Unity? Explain its purpose and usage. | RenderTextureFormat.BGR101010_XR
Description
Color render texture format, 10 bit per channel, extended range.
The components are linearly encoded and their values range from -0.752941 to 1.25098.
Note that not all graphics cards support this format. Use
SystemInfo.SupportsRenderTextureFormat
to check for support.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f4d87fe8e6c6 | unity_docs | scripting | Show me a Unity C# example demonstrating `Event.isMouse`. | Event.isMouse
public bool
isMouse
;
Description
Is this event a mouse event? (Read Only)
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Detects any mouse event
void OnGUI()
{
Event e = Event.current;
if (e.isMouse)
{
Debug.Log("Detected a mouse event!");
}
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_17a371433219 | unity_docs | rendering | In Unity's 'Use search providers', what is 'The purpose of search providers' and how does it work? | Use search providers to narrow your search results to a certain type of item. Providers have filters that match the item type they search for, so selecting a provider also narrows your filter list to only the relevant ones.
You can divide the search providers by their purpose:
Purpose Examples Search your project’s ass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7613cb8791c6 | unity_docs | scripting | What is `Camera.OnPostRender` in Unity? Explain its purpose and usage. | Camera.OnPostRender()
Description
Event function
that Unity calls after a Camera renders the scene.
In the Built-in Render Pipeline, Unity calls
OnPostRender
on MonoBehaviours that are attached to the same GameObject as an enabled Camera component, just after that Camera renders the scene. For a full descriptio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46c391caee75 | unity_docs | rendering | What is `Build.OverrideTextureCompression.NoOverride` in Unity? Explain its purpose and usage. | OverrideTextureCompression.NoOverride
Description
Do not override texture import compression parameters.
This is default value for
EditorUserBuildSettings.overrideTextureCompression
- with
NoOverride
,
texture compression parameters from texture import settings are used.
Additional resources:
EditorUserBuildSet... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eb16ab73b912 | unity_docs | input | Explain 'Synthesize and send events' in Unity. | Before you synthesize and send custom events, understand
how the UI Toolkit event system allocates and sends operating system events
.
UI Toolkit sends events to
visual elements
through the panel. If an event has no target, it’s sent to the root element of the panel. To have a propagation path, an element must have a t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5aa6748a3df | unity_docs | rendering | Show me a Unity C# example demonstrating `Texture.height`. | height of the Texture at full resolution.
At run time, if
PlayerSettings.mipStripping
is disabled, this returns the height of the Texture at full resolution. If
PlayerSettings.mipStripping
is enabled, this returns the height of the Texture at the highest resolution that has not been stripped.
Additional resource... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d76142fe65d6 | unity_docs | editor | What is `PrefabUtility.RevertAddedComponent` in Unity? Explain its purpose and usage. | PrefabUtility.RevertAddedComponent
Declaration
public static void
RevertAddedComponent
(
Component
component
,
InteractionMode
action
);
Parameters
Parameter
Description
component
The added component on the Prefab instance to revert.
action
The interaction mode for this action.
Description
Removes th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86dcb5278606 | unity_docs | physics | What is `SpherecastCommand` in Unity? Explain its purpose and usage. | SpherecastCommand
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Use this struct to set up a sphere cast command that is performed asynchronously during a job.
When you use this struct to schedule a batch of sphere casts, the sphere casts are performed asynchronously and in parall... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_26fb9a77c3a0 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.SetBuildProperty`. | id
.
name
The name of the build property. For more information on build properties, refer to
Build settings reference (Apple Developer)
.
value
The value of the build property.
Description
Sets a build property to the given value in all build configurations for the specified target(s).
Values for names
LIBRARY... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b5d4b88b36ee | unity_docs | physics | Explain 'Optimize raycasts and other physics queries' in Unity. | Optimize physics query performance and reduce garbage collection overhead by using efficient query versions and batch processing.
## Use non-allocating query versions
Standard physics queries, such as
Physics.Raycast
,
Physics.SphereCast
, or
Physics.OverlapSphere
, allocate memory on the heap for their results. This... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d761b7f651c | unity_docs | physics | What is `TargetJoint2D` in Unity? Explain its purpose and usage. | TargetJoint2D
class in
UnityEngine
/
Inherits from:
Joint2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
The joint attempts to move a
Rigidbody2D
to a specific target position.
This joint is the only joint that doesn't connect two
Rigidbody2D
together. Instead, it only operates on the single ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ac5530ba1819 | unity_docs | scripting | Explain 'Windows integrity control' in Unity. | The
Mandatory Integrity Control
security feature on Windows devices allocates an integrity level (IL) to all applications and processes. The device’s operating system or database constrains a user’s or initiator’s ability to access or perform other operations on an
object/target
(such as files, memory, or directories).... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e2f22ac0899 | unity_docs | rendering | What is `Search.SearchPropositionFlags.QueryBuilder` in Unity? Explain its purpose and usage. | SearchPropositionFlags.QueryBuilder
Description
Indicates that the search propositions are fetched for the query block selector.
```
static IEnumerable<SearchProposition> EnumerateDecalPropositions(SearchContext context, SearchPropositionOptions options)
{
if (!options.flags.HasAny(SearchPropositionFlags.QueryBuil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c10df6ddd633 | unity_docs | scripting | What is `Color.operator_add` in Unity? Explain its purpose and usage. | Color.operator +
public static
Color
operator +
(
Color
a
,
Color
b
);
Description
Adds two colors together. Each component is added separately.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Color magenta = Color.blue + Color.red;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_028e794250eb | unity_docs | math | What is `Bounds.Expand` in Unity? Explain its purpose and usage. | Bounds.Expand
Declaration
public void
Expand
(float
amount
);
Description
Expand the bounds by increasing its
size
by
amount
along each side.
Declaration
public void
Expand
(
Vector3
amount
);
Description
Expand the bounds by increasing its
size
by
amount
along each side. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_825b2d3ff561 | unity_docs | scripting | In Unity's 'Offer an Asset Store package at a discount', what is 'Include a package in an Asset Store discount period' and how does it work? | Before a discount period starts the Asset Store team contacts publishers whose packages fit the criteria or style of the sale.
The Asset Store team chooses candidates a month or two before the discount period starts.
The Asset Store team selects packages to discount based on the following:
The target market of the disc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c006a92d002e | unity_docs | performance | In Unity's 'Search profiler markers', what is 'Query syntax' and how does it work? | Provider token:
profile:
Query example: Searches the profiler markers for the text active and a sample count of over
1000
.
```
profile: count>1000 active
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4c76c0c2d16 | unity_docs | physics | What is `QueryParameters.hitMultipleFaces` in Unity? Explain its purpose and usage. | QueryParameters.hitMultipleFaces
public bool
hitMultipleFaces
;
Description
Whether raycast batch query should hit multiple faces.
Can be used in conjuction with
QueryParameters.hitBackfaces
to get backface hits as well. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b54a49898ea | unity_docs | editor | What is `Experimental.Rendering.IScriptableBakedReflectionSystemStageNotifier.EnterStage` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IScriptableBakedReflectionSystemStageNotifier.EnterStage
Declaration
public void
EnterStage
(int
stage
,
string
progressMessage
,
float
progress
);
Parameters
Parameter
Description
stage
The current stage in progress.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5e3d154c2e9 | unity_docs | editor | Show me a Unity code example for 'Define a namespace prefix'. | L files. To categorize elements, create the class in a namespace. When you define a new namespace, you can define a prefix for the namespace. You must define namespace prefixes as attributes of the root
<UXML>
element and replace the full namespace name when scoping elements.
To define a namespace prefix, add a UxmlNam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e90789b60e2 | unity_docs | scripting | What is `IMGUI.Controls.MultiColumnHeader.SetSortDirection` in Unity? Explain its purpose and usage. | MultiColumnHeader.SetSortDirection
Declaration
public void
SetSortDirection
(int
columnIndex
,
bool
sortAscending
);
Parameters
Parameter
Description
columnIndex
Column index.
sortAscending
Direction of the sorting.
Description
Change sort direction for a given column. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1910f4e5b34 | unity_docs | editor | What is `Device.SystemInfo.hasHiddenSurfaceRemovalOnGPU` in Unity? Explain its purpose and usage. | SystemInfo.hasHiddenSurfaceRemovalOnGPU
public static bool
hasHiddenSurfaceRemovalOnGPU
;
Description
This has the same functionality as
SystemInfo.hasHiddenSurfaceRemovalOnGPU
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. |
gh_268971e1fdd6_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The View handles user interface and user input
Signature:
```csharp
public class ClockView: IView
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_e7895dee5e42 | unity_docs | editor | What is `iOS.Xcode.PBXProject.RemoveFrameworkFromProject` in Unity? Explain its purpose and usage. | PBXProject.RemoveFrameworkFromProject
Declaration
public void
RemoveFrameworkFromProject
(string
targetGuid
,
string
framework
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
framework
The name of the framework. The extension of the fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2ca289905b3 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.GetDescendantsThatHaveChildren` in Unity? Explain its purpose and usage. | TreeView.GetDescendantsThatHaveChildren
Declaration
protected IList<int>
GetDescendantsThatHaveChildren
(int
id
);
Parameters
Parameter
Description
id
TreeViewItem ID.
Returns
IList<int>
Descendants that have children.
Description
Returns all descendants for the item with ID id that have children.
I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e327d2b436b | unity_docs | math | What is `Matrix4x4.SetRow` in Unity? Explain its purpose and usage. | Matrix4x4.SetRow
Declaration
public void
SetRow
(int
index
,
Vector4
row
);
Description
Sets a row of the matrix.
The i-th row is set from
Vector4
.
i
must be from 0 to 3 inclusive.
Additional resources:
GetRow
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c75d77a17e92 | unity_docs | scripting | What is `ParticleSystem.NoiseModule.scrollSpeedMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.scrollSpeedMultiplier
public float
scrollSpeedMultiplier
;
Description
Scroll speed multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall scroll speed multiplier.
Additional resources:
ParticleSystem.NoiseModule.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35dbb2389db6 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsStateCollection.totalGraphicsStateCount` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection.totalGraphicsStateCount
public int
totalGraphicsStateCount
;
Description
The total number of graphics states across all shader variants in the collection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c81fe12c66f9 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.PasswordField`. | front of the password field.
password
The password to edit.
style
Optional
GUIStyle
.
Returns
string
The password entered by the user.
Description
Makes a text field where the user can enter a password.
This works just like
GUI.PasswordField
, but correctly responds to select all, etc. in the editor,
and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_52e55f2547ea | unity_docs | audio | In Unity's 'Web request low-level API reference', what is 'Instantiating UnityWebRequest objects' and how does it work? | UnityWebRequest
can be instantiated through its constructors like any other object. Several constructor signatures are available for creating a UnityWebRequest with or without upload or download handlers.
UnityWebRequest
also has properties for configuring the request, tracking its status, and checking the result.
For ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_302a507af426 | unity_docs | editor | What are the parameters of `PrefabUtility.ApplyRemovedGameObject` in Unity? | Description Removes the GameObject from the source Prefab Asset. When a GameObject is removed from a Prefab instance, that modification is a type of Instance Override . The act of applying the change (the removal of the GameObject) to the Prefab means the GameObject is removed from the Prefab Asset itself, along with i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00ce8431f963 | unity_docs | math | What is `Unity.Properties.PropertyPath` in Unity? Explain its purpose and usage. | PropertyPath
struct in
Unity.Properties
/
Implemented in:
UnityEngine.PropertiesModule
Description
A
PropertyPath
is used to store a reference to a single property within a tree.
The path is stored as an array of parts and can be easily queried for algorithms.
Properties
Property
Description
IsEmpty... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a7c2312ecd6 | unity_docs | rendering | Show me a Unity C# example demonstrating `VersionControl.VersionControlObject.GetExtension`. | Extension
enables you to draw VCS status overlays over asset icons. See the documentation for the full list of extensions. Future versions of Unity might add new extensions or stop calling existing ones.
The default GetExtension implementation attempts to cast
VersionControlObject
to extension type. This allows you ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc59bd0af704 | unity_docs | scripting | What is `AnimatedValues.BaseAnimValue_1.GetValue` in Unity? Explain its purpose and usage. | BaseAnimValue<T0>.GetValue
Declaration
protected T
GetValue
();
Returns
T
Current Value.
Description
Abstract function to be overridden in derived types. Should return the current value of the animated value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3df8ba04c542 | unity_docs | math | What is `GeometryUtility` in Unity? Explain its purpose and usage. | GeometryUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Utility class for common geometric functions.
Static Methods
Method
Description
CalculateBounds
Calculates the bounding box from the given array of positions and the transformation matrix.
CalculateFrustumPlanes
Calcul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bf006680ee2 | unity_docs | editor | What is `AssetDatabase.IsNativeAsset` in Unity? Explain its purpose and usage. | AssetDatabase.IsNativeAsset
Declaration
public static bool
IsNativeAsset
(
Object
obj
);
Declaration
public static bool
IsNativeAsset
(int
instanceID
);
Parameters
Parameter
Description
obj
The object of the asset.
entityId
The EntityID of the asset.
instanceID
The InstanceID of the asset.
Returns... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_02c484019b8c | unity_docs | rendering | In Unity's 'ShaderLab: legacy vertex data channel mapping', what is 'Details' and how does it work? | Unity places some restrictions on which sources can be mapped to which targets. Source and target must match for Vertex ,
Normal
,
Tangent and Color
. Texture coordinates from the mesh (
Texcoord and Texcoord1
) can be mapped into texture coordinate targets (
Texcoord
for all texture stages, or TexcoordN for a specific... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29947acb24f2 | unity_docs | scripting | What is `Search.IQueryEngineFilter.AddOrUpdateMetaInfo` in Unity? Explain its purpose and usage. | IQueryEngineFilter.AddOrUpdateMetaInfo
Declaration
public
Search.IQueryEngineFilter
AddOrUpdateMetaInfo
(string
key
,
string
value
);
Parameters
Parameter
Description
key
The key of the information.
value
The value of the information.
Returns
IQueryEngineFilter
The current filter.
Description
Ad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_016a0660033f | unity_docs | scripting | What is `Unity.Properties.PropertyVisitor.IsExcluded` in Unity? Explain its purpose and usage. | PropertyVisitor.IsExcluded
Declaration
protected bool
IsExcluded
(Property<TContainer,TValue>
property
,
ref TContainer
container
,
ref TValue
value
);
Parameters
Parameter
Description
property
The property providing access to the data.
container
The container being visited.
value
The value being visit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd8e072f599b | unity_docs | ui | What is `UIElements.RepeatButton.SetAction` in Unity? Explain its purpose and usage. | RepeatButton.SetAction(System.Action,long,long)
Parameters
Parameter
Description
clickEvent
The action to execute.
delay
The initial delay before the action is executed for the first time. Value is defined in milliseconds.
interval
The interval between each execution of the action. Value is defined in millise... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce3464b927f5 | unity_docs | scripting | What is `Search.SearchSelection.ctor` in Unity? Explain its purpose and usage. | SearchSelection Constructor
Declaration
public
SearchSelection
(IList<int>
selection
,
Search.ISearchList
filteredItems
);
Declaration
public
SearchSelection
(IEnumerable<SearchItem>
items
);
Parameters
Parameter
Description
selection
Current list of selected SearchItem indices.
filteredItems
List ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88c5f8e15a09 | unity_docs | scripting | What is `Physics2D.Simulate` in Unity? Explain its purpose and usage. | Physics2D.Simulate
Declaration
public static bool
Simulate
(float
deltaTime
,
int
simulationLayers
= Physics2D.AllLayers);
Parameters
Parameter
Description
deltaTime
The time to advance physics by.
simulationLayers
The
Rigidbody2D
and
Collider2D
layers to simulate.
Returns
bool
Whether the simula... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_204e50a9f36f | unity_docs | scripting | What is `Experimental.GraphView.StickyNoteChangeEvent` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNoteChangeEvent
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
UIElements.EventBase_1
Description
The event sent when a [StickyNote] was changed.
Properties
Property
Description
change
The type of chan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dc6ede566d98 | unity_docs | physics | In Unity's 'Search your project and scenes', what is 'Filter examples' and how does it work? | The Hierarchy, Project, and Asset Database use similar filters, but the details differ. For example, all three can search by component, but the Asset Database can’t search by parameter values.
Provider
Example description Query Asset Database
Finds assets with a Sphere Collider component, such as presets for that compo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2dc6bde87ad2 | unity_docs | scripting | What is `GUISkin.settings` in Unity? Explain its purpose and usage. | GUISkin.settings
public
GUISettings
settings
;
Description
Generic settings for how controls should behave with this skin.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Sets the selection color to cyan string str = "This is a string with\ntwo lines of text"; void OnGUI()
{
GUI.skin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c7839e8cb024 | github | scripting | Write a Unity C# UI script for Mono Behaviour Inspector | ```csharp
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
namespace EssentialEditor.Internal
{
[CanEditMultipleObjects]
[CustomEditor(typeof(MonoBehaviour), true)]
public class MonoBehaviourInspector : Editor
{
D... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_908050311f25 | github | scripting | Write a Unity C# UI script for Cacheable UI Behaviour | ```csharp
using UnityEngine;
namespace Kogane
{
/// <summary>
/// RectTransform プロパティをキャッシュする MonoBehaviour
/// </summary>
public abstract class CacheableUIBehaviour : CacheableMonoBehaviour
{
//================================================================================
// 変数
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_2ecb32ab90cc | unity_docs | rendering | In Unity's 'Strip shader variants', what is 'Indicate which shader keywords affect which shader stage' and how does it work? | When you
declare a keyword
, Unity assumes all stages of the shader contain conditional code for that keyword.
You can add the following suffixes to indicate that only certain stages contain conditional code for a keyword, so that Unity doesn’t generate unneeded shader variants. Keywords with these suffixes are sometim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7327739df8f | unity_docs | scripting | What is `UIElements.UxmlIgnoreAttribute` in Unity? Explain its purpose and usage. | UxmlIgnoreAttribute
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Used for fields that are serialized but do not come from UXML data, such as UxmlSerializedData.uxmlAssetId. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e94864fe66a1 | unity_docs | editor | Explain 'Create variations of prefabs' in Unity. | If you want to reuse a prefab with different settings and configurations, Unity saves it as a prefab variant. For example, you can use prefab variants to create different types of enemy characters. You can base the characters on the same basic prefab, but then vary the speed, add different objects, or adjust sound effe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a87c3827b9f | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetNextAnimatorClipInfoCount` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetNextAnimatorClipInfoCount
Declaration
public int
GetNextAnimatorClipInfoCount
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
int
The number of
AnimatorClipInfo
in the next state.
Description
Returns the number of
AnimatorClipIn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f9d28197155d | unity_docs | math | In Unity's 'Use P/Invoke', what is 'P/invoke limitations' and how does it work? | On Universal Windows Platform (UWP), you can’t specify the dynamic-link library (DLL) name to P/Invoke into specific system libraries. If you try to P/Invoke into any DLL that exists outside of the project, it will result in a DllNotFoundException at runtime. Therefore, it’s possible to use the __Internal keyword in pl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_40f2c8ee0665 | github | scripting | Write a Unity C# ScriptableObject for Default Editor Script Template | ```csharp
using CodeGeneration;
using CodeGeneration.Data;
using FieldSearch.EditorScriptGeneration.GlobalEditor;
using System;
using System.IO;
using UnityEditor;
using UnityEngine;
namespace FieldSearch.EditorScriptGeneration.Templates
{
/// <summary>
/// Default implementation <see cref="BaseEditorScriptTe... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_daea26d8de02 | unity_docs | math | What is `RectInt.max` in Unity? Explain its purpose and usage. | RectInt.max
public
Vector2Int
max
;
Description
The upper right corner of the rectangle; which is the maximal position of the rectangle along the x- and y-axes, when it is aligned to both axes.
If you enter a maximum value that is less than the current minimum value, then the entered value becomes the new min... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0aedb2a287e0 | unity_docs | scripting | In Unity's 'Search presets', what is 'Query syntax' and how does it work? | Provider token:
preset:
Query example: Searches for a preset with the property
flare
.
```
preset: prop:flare
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_979bf31b8ecb | unity_docs | scripting | Show me a Unity C# example demonstrating `WaitUntil`. | tes to
true
.
WaitUntil
can only be used with a
yield
statement in coroutines.
The supplied delegate is executed each frame after
MonoBehaviour.Update
and before
MonoBehaviour.LateUpdate
. When the delegate evaluates to
true
, the coroutine resumes.
Additional resources:
AsyncOperation
,
WaitForEndOfFrame
, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69c5022d0970 | unity_docs | physics | Show me a Unity C# example demonstrating `Rigidbody.position`. | y using
Rigidbody.position
, the transform will be updated after the next physics simulation step. This is faster than updating the position using
Transform.position
, as the latter will cause all attached Colliders to recalculate their positions relative to the Rigidbody.
If you want to continuously move a rigidbody... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0303503178dc | unity_docs | editor | What is `TerrainTools.IOnInspectorGUI` in Unity? Explain its purpose and usage. | IOnInspectorGUI
interface in
UnityEditor.TerrainTools
Description
Interface that provides parameters and utility functions for the OnInspectorGUI event in the terrain paint tools.
Additional resources:
TerrainPaintTool<T0>.OnInspectorGUI
.
Public Methods
Method
Description
Repaint
Instructs the Editor to rep... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f58e5cc0ed10 | unity_docs | math | What are the parameters of `Gizmos.DrawLineStrip` in Unity? | Description Draws a line between each point in the supplied span. This function provides a more efficient way to draw multiple lines than repeatedly calling the Gizmos.DrawLine function for each one. Unity draws the first line from points[0] to points[1] , the next from points[1] to points[2] , and so on. ```csharp
usi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e29fd827449 | unity_docs | scripting | What is `UIElements.CollectionViewController.SetItemsSourceWithoutNotify` in Unity? Explain its purpose and usage. | CollectionViewController.SetItemsSourceWithoutNotify
Declaration
protected void
SetItemsSourceWithoutNotify
(IList
source
);
Parameters
Parameter
Description
source
The new source.
Description
Set the itemsSource without raising the itemsSourceChanged event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c895c86a6fd | unity_docs | animation | What is `Playables.AnimationPlayableUtilities.PlayMixer` in Unity? Explain its purpose and usage. | AnimationPlayableUtilities.PlayMixer
Declaration
public static
Animations.AnimationMixerPlayable
PlayMixer
(
Animator
animator
,
int
inputCount
,
out
Playables.PlayableGraph
graph
);
Parameters
Parameter
Description
animator
Target Animator.
inputCount
The input count for the
AnimationMixerPlayable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62b08f6b53b5 | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCpy`. | ocation to a destination memory location.
The
MemCpy
method efficiently copies data from one memory location to another. It is ideal for quickly duplicating memory content in performance-critical applications. Note that if the source and destination memory regions overlap, the result is not guaranteed to be correct.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6b6b3502f27c | unity_docs | ui | In Unity's 'Click events', what is 'ClickEvent' and how does it work? | Unity sends this event when the left mouse button is clicked over a visual element.
target
: The element underneath the mouse or pointing device when the click occurred.
The following example registers for a ClickEvent on a visual element:
```csharp
btnClose.RegisterCallback<ClickEvent, VisualElement>(Clicked, asset); ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d036aa358767 | unity_docs | scripting | What is `Rendering.InvalidImportException.ctor` in Unity? Explain its purpose and usage. | InvalidImportException Constructor
Declaration
public
InvalidImportException
(string
message
);
Parameters
Parameter
Description
message
The message of the exception.
Description
Constructs the exception with the given message. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b7fffa3bf14b_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Binds order data to XR room/UI elementsManages visual representation of orders in 3D space
Signature:
```csharp
public class OrderRoomBinder : MonoBehaviour
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_aee043617948 | unity_docs | physics | What is `Build.OverrideTextureCompression.ForceUncompressed` in Unity? Explain its purpose and usage. | OverrideTextureCompression.ForceUncompressed
Description
Import textures with texture compression off.
You can set
EditorUserBuildSettings.overrideTextureCompression
to
ForceUncompressed
to import
all textures into uncompressed texture formats. This is the same as if all the textures had "Compression: None"
opt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c2d934a2541 | unity_docs | input | Show me a Unity C# example demonstrating `Color.RGBToHSV`. | eclaration
public static void
RGBToHSV
(
Color
rgbColor
,
out float
H
,
out float
S
,
out float
V
);
Parameters
Parameter
Description
rgbColor
An input color.
H
Output variable for hue.
S
Output variable for saturation.
V
Output variable for value.
Description
Calculates the hue, saturation and val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ce3f79002f1 | unity_docs | editor | Give me an overview of the `AssemblyIsEditorAssembly` class in Unity. | AssemblyIsEditorAssembly
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Assembly level attribute. Any classes in an assembly with this attribute will be considered to be Editor Classes.
Constructors
Constructor
Description
AssemblyIsEditorAssembly
Constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b73b87439c52 | unity_docs | editor | What are the parameters of `AssetDatabase.Refresh` in Unity? | Description Import any changed assets. Import any assets that have modified or added content, import settings, or dependencies since the last refresh. The Asset Database also updates for any assets that have been removed. This operation happens synchronously for asset imports, and asynchronously for script compilation.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_715c157ab66b | unity_docs | scripting | What is `Rendering.SortingGroup` in Unity? Explain its purpose and usage. | SortingGroup
class in
UnityEngine.Rendering
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.CoreModule
Description
Adding a SortingGroup component to a GameObject will ensure that all Renderers within the GameObject's descendants will be sorted and rendered together.
A common use case for having a So... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e6ca943d10fa | github | scripting | Write a Unity C# UI script for Tips Window Ctrl | ```csharp
using UnityEngine;
using UnityEngine.UI;
public class TipsWindowCtrl : MonoBehaviour
{
public Canvas m_Canvas;
public Text m_TipsText;
public void Init(string error)
{
m_Canvas.worldCamera = Camera.main;
m_TipsText.text = error;
}
}
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_12848056a2a2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Video.VideoPlayer.time`. | .frameReady
when the frame is prepared and displays the frame.
The
time
value only properly settles when the VideoPlayer displays the frame.
If you set
time
to another value during this operation, the VideoPlayer creates a new seek operation and adds it to a queue. The new operation will start when the previous o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e754ea47384d | unity_docs | scripting | Explain 'Callback from native code' in Unity. | Unity iOS supports limited native-to-managed callback functionality using one of the following methods:
UnitySendMessage
Delegates
## Use UnitySendMessage
UnitySendMessage
looks like this:
UnitySendMessage("GameObjectName1", "MethodName1", "Message to send");
There are three parameters:
The name of the target GameObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb6f5a354bf1 | unity_docs | editor | Show me a Unity C# example demonstrating `ShortcutManagement.IShortcutContext`. | IShortcutContext
interface in
UnityEditor.ShortcutManagement
Description
Use
IShortcutContext
to create your own shortcut context by defining the conditions for when a shortcut becomes active or inactive. These conditions can be based on various factors or any other relevant contextual information.
To register ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe7b9c0407c8 | unity_docs | editor | What is `PlayerSettings.GetEditorAssembliesCompatibilityLevel` in Unity? Explain its purpose and usage. | PlayerSettings.GetEditorAssembliesCompatibilityLevel
Declaration
public static
EditorAssembliesCompatibilityLevel
GetEditorAssembliesCompatibilityLevel
();
Returns
EditorAssembliesCompatibilityLevel
Returns the .NET API level for editor assemblies.
Description
Gets .NET API compatibility level for the e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01347e4cae40 | unity_docs | rendering | What is `ImageEffectUsesCommandBuffer` in Unity? Explain its purpose and usage. | ImageEffectUsesCommandBuffer
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Use this attribute when image effects are implemented using Command Buffers.
When you use this attribute, Unity renders the Scene into a RenderTexture instead of the actual target. Please note that Camera.forc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_952977302ff9 | unity_docs | scripting | What are the parameters of `Search.Providers.SceneQueryEngineFilterAttribute.ctor` in Unity? | Description Create a filter with the corresponding token and supported operators. The following example adds a new filter function dist that returns the distance between an object and a point. This filter needs a parameter transformer to transform the text into a point. Also, it doesn't support the operator "contains" ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_528350353268 | unity_docs | editor | What is `EditorGUI.BeginDisabledGroup` in Unity? Explain its purpose and usage. | EditorGUI.BeginDisabledGroup
Declaration
public static void
BeginDisabledGroup
(bool
disabled
);
Parameters
Parameter
Description
disabled
Boolean specifying if the controls inside the group should be disabled.
Description
Create a group of controls that can be disabled.
If disabled is true, the controls ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_713ed705a36c | unity_docs | scripting | In Unity's 'Scene View preferences reference', what is '3D Placement Mode' and how does it work? | Select where newly created
3D objects
are placed in the scene.
Property Function World Origin
Instantiate new 3D objects at world coordinates 0,0,0.
Scene Intersection
Instantiate new 3D objects at the nearest collider in the center of the Scene view. If no collider is hit, then the 3D object is instantiated at the
sce... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e0ddbd40a74 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.ObjectIndexer.IndexProperty`. | will be stored in the index (not the variations).
Description
Adds a property value to the index. A property is specified with a key and a string value. The value will be stored with multiple variations.
The following example indexes a new boolean property named
testismobilefriendly
that will be used to search tex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_486dc4e43326 | unity_docs | math | What is `Tilemaps.Tilemap.HasTile` in Unity? Explain its purpose and usage. | Tilemap.HasTile
Declaration
public bool
HasTile
(
Vector3Int
position
);
Parameters
Parameter
Description
position
Position to check.
Returns
bool
Returns true if there is a Tile at the position. Returns false otherwise.
Description
Returns whether there is a
Tile
at the position. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3f98653c6dc | unity_docs | physics | What is `RaycastHit2D.fraction` in Unity? Explain its purpose and usage. | RaycastHit2D.fraction
public float
fraction
;
Description
The fraction of the distance specified to the physics query before it detected a
Collider2D
.
When a physics query is used, it has a start position and an explicit end position or a direction and distance. The
fraction
is a value in the range of
0
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7e32f3b1cc95 | unity_docs | input | In Unity's 'UnsignedIntegerField', what is 'Set a placeholder text' and how does it work? | You can set a placeholder text for the element. You can also hide the placeholder text on focus.
Note
: The placeholder text won’t display if you set a value for the element. To unset a value in UI Builder, right-click the Value field in the element’s Inspector tab and select
Unset
.
In C#, use the placeholder and the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ac900185a6c | unity_docs | physics | What is `PhysicsVisualizationSettings.UpdateMouseHighlight` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.UpdateMouseHighlight
Declaration
public static void
UpdateMouseHighlight
(
Vector2
screenPos
);
Description
Updates the mouse-over highlight at the given mouse position in screen space.
Additional resources:
HandleUtility.GUIPointToScreenPixelCoordinate
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9477f3b0c416 | unity_docs | scripting | Explain 'Material variants' in Unity. | A material variant is a material that inherits the properties of a parent material. Use material variants to create a hierarchy of materials, to help you manage and maintain groups of similar materials more efficiently than creating duplicate copies.
For example, use material variants to manage outfits with a variety o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c938d16f6cd0 | unity_docs | scripting | What is `UIElements.ConverterGroups.RegisterConverterGroup` in Unity? Explain its purpose and usage. | ConverterGroups.RegisterConverterGroup
Declaration
public static void
RegisterConverterGroup
(
UIElements.ConverterGroup
converterGroup
);
Parameters
Parameter
Description
converterGroup
The converter group to register.
Description
Registers a converter group by ID. Converter groups can be applied on a b... | 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.