Category : unity3d

I’m trying to add a spring joint to the player’s game object but I have no idea how to structure it because I can’t find anything on AddComponent in C++ for Unity, so far I have:"joint = playerGameObject->AddComponentUnityEngine::SpringJoint();"but it returns two errors one being"error: no member named ‘get’ in ‘il2cpp_utils::il2cpp_type_check::il2cpp_no_arg_classUnityEngine::SpringJoint’"and the other being"error: static_assert failed ..

Read more

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Fly : MonoBehaviour { int speed = 20; bool down = true; float rotate = -40f; bool trigger = false; [SerializeField] GameObject spawnObject; bool spawnerCont = true; public GameObject spawnPoint; public GameObject spawnExplosive; public GameObject spawnFinish; public GameObject spawnex; public List<GameObject> spawnList = new List<GameObject>(); public List<GameObject> ..

Read more

I imported the UnityStandaloneFileBrowser asset to a sample project to test it. Unfortunately I am not able to build the project for Windows. I needed to set the Scripting Backend to IL2CPP and tried to use .NET Standard 2.0 and .NET 4.X, but both gave me these errors while trying to build: 1. ArgumentException ArgumentException: ..

Read more

This question is part of a procedural generated dungeon algorithm I’m trying. I want to randomly generate a graph (representing rooms and corridors), assign size to each vertices/rooms and plot them on a 2d plane. One requirement is I don’t want the edges/corridors to overlap with rooms. Example pic I have no idea how to ..

Read more