What do you want to save?
Add Code snippet
New code examples in category C#
-
Avpev 2021-08-28 10:53:02
unity freeze position in script
using UnityEngine; public class FreezePosition : MonoBehaviour { public GameObject TheThingToFreeze; public void Start() { TheThingToFreeze.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezePositionX | Rigidbod... Add solution -
Jia-Wisteria 2021-08-28 10:27:02
unity separator in inspector
using UnityEngine; public class Example : MonoBehaviour { //Use this PropertyAttribute to add a header above some fields in the Inspector. [Header("Hi there!")] //Space between variables [Space(10)] //Attribute used ... Add solution -
ChaBuku Bakke 2021-08-28 09:54:02
asp.net core models not showing up in database
using Microsoft.EntityFrameworkCore; using MvcMovie.Models; namespace MvcMovie.Data { public class MvcMovieContext : DbContext { public MvcMovieContext (DbContextOptions<MvcMovieContext> options) : base(options) ... Add solution -
Brian Leeming 2021-08-28 09:05:01
press button with and have confirm unity
IEnumerator PlaceBuilding() { // whatever you're doing now with the temporary / placement preview building ConfirmationDialog dialog = ShowConfirmationDialog(); // instantiate the UI dialog box while(dialog.result == DialogResult.None) ... Add solution -
Abigail Bridget Sari Thomas 2021-08-28 06:54:01
NUnit test syntax
namespace NUnit.Tests { using System; using NUnit.Framework; [TestFixture] public class SuccessTests { // A simple test [Test] public void Add() { /* ... */ } // A test with a description property [Test(Description=&quo... Add solution
Best helpers
Ranking is empty