This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using GameCreator.Runtime.Common; | |
using GameCreator.Runtime.Inventory; | |
using EasyBuildSystem.Features.Runtime.Buildings.Part; | |
using UnityEngine; | |
/// <summary> | |
/// This will save GameCreator's bag inventory inside the EBS Properties of a BuildingPart. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GameCreator.Runtime.Inventory; | |
using UnityEditor; | |
using System.Reflection; | |
using UnityEngine; | |
using GameCreator.Runtime.Common; | |
using vwgamedev.GameCreator.Runtime.UMA; | |
using UMA.CharacterSystem; | |
public class ItemTestCreator : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Animations; | |
public class HumanoidGrabber : MonoBehaviour | |
{ | |
public int resetFrames = 5; | |
private List<Transform> grabbedObjects = new List<Transform>(); | |
private Animator animator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
import c4d | |
doc: c4d.documents.BaseDocument | |
op: Optional[c4d.BaseObject] | |
def find_object_by_name(obj: c4d.BaseObject, name: str) -> Optional[c4d.BaseObject]: | |
while obj: | |
if obj.GetName() == name: | |
return obj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example Scriptable Object. Instance must be placed in Resources folder and have the same name as the class, type of generic parameter must be your class. | |
using UnityEngine; | |
namespace Custom.Namespace | |
{ | |
[CreateAssetMenu(fileName = "exampleObject", menuName = "Singelton/Example"), SingletonScriptableObjectInspector] | |
public class exampleObject : SingletonScriptableObject<exampleObject> | |
{ | |
// Here goes your data. This class can be called by the static Instance property, which will automatically locate the instance in the Resources folder. | |
public string myString = "Hello World!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres: | |
container_name: gameserver_postgres | |
image: postgres:12.2-alpine | |
environment: | |
- POSTGRES_DB=nakama | |
- POSTGRES_PASSWORD=localdb | |
volumes: | |
- pgdatanamaka:/var/lib/postgresql/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class EyeBlendShapes : MonoBehaviour | |
{ | |
public skinnedMeshRendererContainer[] meshRenderers; | |
public Quaternion LeftEye_RestPosition; | |
public Transform LeftEye; | |
public Quaternion RightEye_RestPosition; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace GameCreator.Core | |
{ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using GameCreator.Camera; | |
[AddComponentMenu("")] | |
public class Action_FirstPersonBoneTarget_Freeze; : IAction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class GetNewArea : MonoBehaviour | |
{ | |
private Vector3Int current; | |
public int ClampValue = 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public class TerrainLayer_Generator | |
{ | |
/// <summary> | |
/// Just right-click on the material generated by Megascans and then click on "Megascans -> Create TerrainLayer from Material" |
NewerOlder