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
// Fill out your copyright notice in the Description page of Project Settings. | |
#pragma once | |
#include "CoreMinimal.h" | |
#include "Kismet/BlueprintFunctionLibrary.h" | |
#include "Misc/FileHelper.h" | |
#include "HAL/PlatformFilemanager.h" | |
#include "HAL/FileManager.h" | |
#include "IPlatformFilePak.h" |
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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "pakfileloader.h" | |
#include <Engine/StreamableManager.h> | |
void Upakfileloader::PakfileloaderInit(FString path) | |
{ | |
FPakPlatformFile* PakPlatformFile = new FPakPlatformFile(); |
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
WORD GetProcessIdByName(const std::wstring& processName) | |
{ | |
// Take a snapshot of all processes in the system | |
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); | |
if (hSnapshot == INVALID_HANDLE_VALUE) { | |
std::cerr << "Failed to create process snapshot. Error code: " << GetLastError() << std::endl; | |
return 0; | |
} | |
// Iterate through the processes to find the one with the given name |
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
// The commented out parts are for Unity 2018.4 | |
//using System.Reflection; | |
//using UnityEditor.Experimental.UIElements.GraphView; | |
//using UnityEngine.Experimental.UIElements; | |
//using UnityEngine.Experimental.UIElements.StyleEnums; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.Experimental.GraphView; | |
using UnityEngine; |
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 ModelImporter; | |
using System.IO; | |
using UnityEngine.Networking; | |
using System; | |
public class Meshimport : 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
// | |
// Mono.CSharp CSharpCodeCompiler Class implementation | |
// | |
// Authors: | |
// Sean Kasun (seank@users.sf.net) | |
// Gonzalo Paniagua Javier (gonzalo@ximian.com) | |
// | |
// Copyright (c) Novell, Inc. (http://www.novell.com) | |
// |
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
Imports System.IO | |
Imports System.Windows.Forms | |
Public Class Granny | |
Dim root As LSLib.Granny.Model.Root | |
Public Sub SaveGr2(ByVal root As LSLib.Granny.Model.Root, ByVal filename As String) | |
Dim gr12 = New LSLib.Granny.GR2.GR2Writer() | |
Dim fo As FileStream = File.Open(filename, FileMode.Create, System.IO.FileAccess.Write, FileShare.Write) | |
Dim body = gr12.Write(root) | |
fo.Write(body, 0, body.Length) |
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
Imports System.Windows.Forms | |
Imports Autodesk.Max | |
Public Class Assemblyfunctions | |
Public Shared Sub AssemblyLoad() | |
End Sub | |
Public Shared Sub AssemblyMain() | |
Try | |
Dim g = Autodesk.Max.GlobalInterface.Instance | |
Dim i = g.COREInterface13 |
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
Imports Autodesk | |
Imports UiViewModels | |
Imports System | |
Imports Autodesk.Max | |
Imports Autodesk.Max.Plugins | |
Imports System.Windows.Forms | |
Public Class Twistspline | |
Inherits Plugins.SplineShape | |
Public Overrides Property SelLevel As UInteger | |
Get |
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
#include "grannyfile.h" | |
#include <vector> | |
#include <iostream> | |
#include <cinttypes> | |
#include <inttypes.h> | |
using namespace std; | |
struct myvertex { | |
float px, py, pz;//pos |
NewerOlder