About 50 results
Open links in new tab
  1. How to create animation clip via script in Unity? - Stack Overflow

    May 5, 2022 · I want to create an AnimationClip in script against a GameObject in Unity. However, I do not know how to do it. I have attached the following code to a GameObject in …

  2. Creating a Scriptable Object in the Unity Editor - Stack Overflow

    May 28, 2018 · How do you create a scriptable object in the editor? I have the project open, it looks like this: Click the Create button as if you wanted to create a folder or C# script or …

  3. unity game engine - unity3d - how to create a terrain from a c

    Jan 22, 2014 · I'm looking to create a piece of terrain in unity using only a script (c# preferably) to do this rather than the menu options on the editor. So far I only have this code below, but I …

  4. Create animations programmatically in Unity? - Stack Overflow

    Feb 13, 2021 · Create in playtime the animation, once I knew what gear would the player select. For that, I created a script to take care of that. The problem is that I have been using APIs …

  5. how can i create a new layer using a script in unity

    Apr 8, 2020 · 2 i need function that goes through all the existing layer names and find if my layer is there and if not then the code need to add the given layer to the layer list i tried this code …

  6. unity game engine - How can I create a prefab variant in C# script ...

    Nov 1, 2018 · I am trying out Unity's new prefab workflow. I want to programmatically create prefab variant(s) on an prefab I've already created. I am using Unity 2018.3.0b7. How can this …

  7. How to create a mesh dynamically In unity - Stack Overflow

    Mar 8, 2019 · This code will draw a square at the position of the prefab, if you keep adding vertices you can generate a more complex mesh. The source of information is a tutorial to …

  8. c# - Unity Create UI control from script - Stack Overflow

    Dec 17, 2016 · You are supposed to make the Toggle the child of the Canvas. You didn't do that in your code. Also, you move a UI component and GameObject with …

  9. How to set tile in tilemap dynamically? - Stack Overflow

    Feb 26, 2019 · Should I create tile game object first and drag it to prefabs folder for make it tile prefab. And I must use like this? setTile(position , TilePrefab.Instantiate()); May I get some …

  10. How can I draw a circle in Unity3D? - Stack Overflow

    Dec 4, 2012 · How to draw circle in Unity 3d? I want to draw a circle around different objects. The radiuses of the circles are different and the circles have textures - squares.