text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```python
import unreal_engine as ue
from unreal_engine.classes import SceneCaptureComponent2D, PyHUD
from unreal_engine.enums import ESceneCaptureSource
class Sight:
def __init__(self):
self.what_i_am_seeing = ue.create_transient_texture_render_target2d(512, 512)
def pre_initialize_components(self)... | /content/code_sandbox/tutorials/FaceRecognitionWithOpenCVAndUnrealEnginePython_Assets/eyes_fourth.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 348 |
```javascript
{
"metadata" :
{
"formatVersion" : 3,
"generatedBy" : "Blender 2.63 Exporter",
"vertices" : 16980,
"faces" : 16468,
"normals" : 16420,
"colors" : 0,
"uvs" : 1524,
"materials" : 1,
"mo... | /content/code_sandbox/tutorials/SnippetsForStaticAndSkeletalMeshes_Assets/knight.js | javascript | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,368,528 |
```unknown
<?xml version="1.0"?>
<COLLADA xmlns="path_to_url" version="1.4.1">
<asset>
<contributor>
<author>gcorson</author>
<authoring_tool>Maya 8.0 | ColladaMaya v3.02 | FCollada v3.2</authoring_tool>
<comments>Collada Maya Export Options: bakeTransforms=0;exportPolygo... | /content/code_sandbox/tutorials/WritingAColladaFactoryWithPython_Assets/duck_triangles.dae | unknown | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 185,256 |
```python
from unreal_engine.classes import PyFactory, StaticMesh, Object, Class
import unreal_engine as ue
from collada import Collada
from unreal_engine.structs import StaticMeshSourceModel, MeshBuildSettings
from unreal_engine import FRawMesh
import numpy
from unreal_engine import FVector, FRotator
from unreal_e... | /content/code_sandbox/tutorials/WritingAColladaFactoryWithPython_Assets/collada_factory.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,215 |
```python
import os.path
from unreal_engine.classes import PyFbxFactory
# instantiate a new factory
fbx_factory = PyFbxFactory()
# build the path for the fbx file
kaiju_assets_dir = os.path.join(os.path.expanduser('~/Desktop'), 'Kaiju_Assets/Slicer')
slicer_fbx = os.path.join(kaiju_assets_dir, 'slicer.fbx')
# confi... | /content/code_sandbox/tutorials/YourFirstAutomatedPipeline_Assets/kaiju_slicer_pipeline.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 5,744 |
```python
import os
import subprocess
import sys
import time
import shutil
import zipfile
UE_VERSIONS = ['4.20', '4.21', '4.22']
PYTHON_VERSIONS = ["C:/Program Files/Python37", "C:/Program Files/Python36", "C:/Python27"]
MSBUILD = 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.... | /content/code_sandbox/tools/release_win64.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,150 |
```shell
UEP_ENABLE_UNITY_BUILD=1 mono "/Users/Shared/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe" PyTest418 Development Mac -project="/Users/roberto/Documents/Unreal Projects/PyTest418/PyTest418.uproject" -editorrecompile
``` | /content/code_sandbox/tools/build_mac.sh | shell | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 73 |
```python
import os
import subprocess
import sys
import time
def msbuild(project, python_version):
base_environ = os.environ
base_environ.update({'PYTHONHOME': python_version})
vs = '"C:/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe"'
process = subprocess.Popen('{0} {1} /t:Rebuild /p:Configuration=... | /content/code_sandbox/tools/build_win64.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 222 |
```python
import unreal_engine as ue
import json
import os
data = {
'scope': 'source.python',
'completions': []
}
for item in ('unreal_engine', 'unreal_engine.classes', 'unreal_engine.structs', 'unreal_engine.enums'):
data['completions'].append({'trigger': item, 'contents': item})
for item in dir(ue):
... | /content/code_sandbox/tools/generate_sublime_text_autocomplete.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 321 |
```python
import unreal_engine as ue
import sys
ue.log_warning('UnrealEnginePython build check: {0}/UE{1}.{2}'.format(sys.version, ue.ENGINE_MAJOR_VERSION, ue.ENGINE_MINOR_VERSION))
``` | /content/code_sandbox/tools/release_check.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 46 |
```python
import re
import os
import sys
import unreal_engine as ue
# TODO: there are invalid names like 'IsInAir?' and 'EUserInterfaceActionType.None'
VALID_NAME_PATTERN = re.compile('^[_a-zA-Z][_a-zA-Z0-9]*$')
FILTERED_NAMES = {
'__new__', '__doc__',
'__str__', '__repr__', '__name__',
'__loader__', '__s... | /content/code_sandbox/tools/generate_pyi_stubs.py | python | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,026 |
```smalltalk
namespace UnrealBuildTool.Rules
{
public class PythonEditor : ModuleRules
{
#if WITH_FORWARDED_MODULE_RULES_CTOR
public PythonEditor(ReadOnlyTargetRules Target) : base(Target)
#else
public PythonEditor(TargetInfo Target)
#endif
{
PCHUsage = ModuleRules.PCHUsage... | /content/code_sandbox/Source/PythonEditor/PythonEditor.Build.cs | smalltalk | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 236 |
```c++
#include "SPythonEditableText.h"
#include "PythonEditorStyle.h"
#include "Runtime/Slate/Public/Framework/Application/SlateApplication.h"
void SPythonEditableText::Construct(const FArguments& InArgs)
{
SMultiLineEditableText::Construct(
SMultiLineEditableText::FArguments()
.Font(FPythonEditorStyle::Get().... | /content/code_sandbox/Source/PythonEditor/Private/SPythonEditableText.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 857 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Framework/Text/SlateTextRun.h"
class FWhiteSpaceTextRun : public FSlateTextRun
{
public:
static TSharedRef< FWhiteSpaceTextRun > Create( const FRunInfo& InRunInfo, const TSharedRef< const FString >& InText, const FTextBlockStyle& Style, const FTextRange& In... | /content/code_sandbox/Source/PythonEditor/Private/WhiteSpaceTextRun.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 193 |
```c++
#include "PythonProjectEditorCommands.h"
#include "PythonEditorStyle.h"
#define LOCTEXT_NAMESPACE "PythonProjectEditorCommands"
FPythonProjectEditorCommands::FPythonProjectEditorCommands()
: TCommands<FPythonProjectEditorCommands>("PythonEditor", LOCTEXT("General", "General"), NAME_None, FPythonEditorStyle:... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditorCommands.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 449 |
```objective-c
#pragma once
#include "PythonProjectEditor.h"
#include "Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h"
class FPythonProjectEditorToolbar : public TSharedFromThis<FPythonProjectEditorToolbar>
{
public:
FPythonProjectEditorToolbar(TSharedPtr<class FPythonProjectEditor> InPythonProjectEditor... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditorToolbar.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 136 |
```c++
#include "Runtime/Core/Public/Modules/ModuleManager.h"
#include "AssetToolsModule.h"
#include "Editor/UnrealEd/Public/Toolkits/AssetEditorToolkit.h"
#include "LevelEditor.h"
#include "PythonEditorStyle.h"
#include "PythonProjectEditor.h"
#include "PythonProject.h"
#include "Runtime/Slate/Public/Framework/MultiB... | /content/code_sandbox/Source/PythonEditor/Private/PythonEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 800 |
```objective-c
#pragma once
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowCentricApplication.h"
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowTabManager.h"
#include "Runtime/Launch/Resources/Version.h"
class FPythonProjectEditor : public FWorkflowCentricApplication, public FGCObject
{
publi... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 662 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Framework/Commands/Commands.h"
class FPythonProjectEditorCommands : public TCommands<FPythonProjectEditorCommands>
{
public:
FPythonProjectEditorCommands();
TSharedPtr<FUICommandInfo> New;
TSharedPtr<FUICommandInfo> NewDirectory;
TSharedPtr<FUICommandIn... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditorCommands.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 143 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Framework/Text/SyntaxTokenizer.h"
/**
* Tokenize the text based upon the given rule set
*/
class FPythonSyntaxTokenizer
{
public:
/** Denotes the type of token */
enum class ETokenType : uint8
{
/** Syntax token matching the tokenizing rules provided ... | /content/code_sandbox/Source/PythonEditor/Private/PythonSyntaxTokenizer.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 496 |
```c++
#include "PythonEditorStyle.h"
#include "EditorStyleSet.h"
#include "SlateCore.h"
#include "Runtime/SlateCore/Public/Styling/SlateStyle.h"
#include "Runtime/Projects/Public/Interfaces/IPluginManager.h"
TSharedPtr< FSlateStyleSet > FPythonEditorStyle::StyleSet = nullptr;
#define IMAGE_BRUSH( RelativePath, ...... | /content/code_sandbox/Source/PythonEditor/Private/PythonEditorStyle.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,146 |
```objective-c
#pragma once
#include "SlateCore.h"
#include "Runtime/Slate/Public/Widgets/Views/STreeView.h"
#include "PythonProjectItem.h"
class SPythonProjectEditor : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SPythonProjectEditor) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, class UPyth... | /content/code_sandbox/Source/PythonEditor/Private/SPythonProjectEditor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 314 |
```objective-c
#pragma once
#include "Runtime/SlateCore/Public/Styling/SlateStyle.h"
class FPythonEditorStyle
{
public:
static void Initialize();
static void Shutdown();
static const ISlateStyle& Get();
static const FName& GetStyleSetName();
private:
/** Singleton instances of this style. */
static TShare... | /content/code_sandbox/Source/PythonEditor/Private/PythonEditorStyle.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 78 |
```c++
#include "SPythonEditor.h"
#include "Runtime/Slate/Public/Widgets/Text/SMultiLineEditableText.h"
#include "PYRichTextSyntaxHighlighterTextLayoutMarshaller.h"
#include "SPythonEditableText.h"
#include "Runtime/Core/Public/Misc/FileHelper.h"
#include "PythonProjectItem.h"
#include "Runtime/Slate/Public/Widgets/La... | /content/code_sandbox/Source/PythonEditor/Private/SPythonEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,167 |
```c++
#include "WhiteSpaceTextRun.h"
#include "Runtime/Slate/Public/Framework/Application/SlateApplication.h"
#include "Runtime/SlateCore/Public/Fonts/FontMeasure.h"
TSharedRef< FWhiteSpaceTextRun > FWhiteSpaceTextRun::Create( const FRunInfo& InRunInfo, const TSharedRef< const FString >& InText, const FTextBlockStyl... | /content/code_sandbox/Source/PythonEditor/Private/WhiteSpaceTextRun.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 586 |
```c++
#include "PythonProjectItem.h"
#include "DirectoryScanner.h"
#include "Developer/DirectoryWatcher/Public/IDirectoryWatcher.h"
UPythonProjectItem::UPythonProjectItem(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
void UPythonProjectItem::RescanChildren()
{
if (Path.Len() > 0)
{
... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectItem.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 811 |
```objective-c
#pragma once
#include "PythonProjectItem.h"
#include "PythonProject.generated.h"
UCLASS()
class UPythonProject : public UPythonProjectItem
{
GENERATED_UCLASS_BODY()
// @TODO: This class should probably be mostly config/settings stuff, with a details panel allowing editing somewhere
};
``` | /content/code_sandbox/Source/PythonEditor/Private/PythonProject.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 65 |
```c++
#include "PythonSyntaxTokenizer.h"
#include "Runtime/Core/Public/Internationalization/BreakIterator.h"
TSharedRef< FPythonSyntaxTokenizer > FPythonSyntaxTokenizer::Create(TArray<FRule> InRules)
{
return MakeShareable(new FPythonSyntaxTokenizer(MoveTemp(InRules)));
}
FPythonSyntaxTokenizer::~FPythonSyntaxToke... | /content/code_sandbox/Source/PythonEditor/Private/PythonSyntaxTokenizer.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 715 |
```objective-c
#pragma once
#include "SlateCore.h"
#include "PythonProjectItem.h"
class SProjectViewItem : public SCompoundWidget
{
public:
DECLARE_DELEGATE_OneParam(FOnNameChanged, UPythonProjectItem*);
SLATE_BEGIN_ARGS(SProjectViewItem) {}
SLATE_ARGUMENT(UPythonProjectItem*, TreeItem)
SLATE_ARGUMENT(FName, ... | /content/code_sandbox/Source/PythonEditor/Private/SProjectViewItem.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 179 |
```c++
#include "PYRichTextSyntaxHighlighterTextLayoutMarshaller.h"
#include "WhiteSpaceTextRun.h"
#include "Runtime/Launch/Resources/Version.h"
FPYRichTextSyntaxHighlighterTextLayoutMarshaller::FPYRichTextSyntaxHighlighterTextLayoutMarshaller(TSharedPtr< FPythonSyntaxTokenizer > InTokenizer, const FSyntaxTextStyle& ... | /content/code_sandbox/Source/PythonEditor/Private/PYRichTextSyntaxHighlighterTextLayoutMarshaller.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,299 |
```c++
#include "PythonProject.h"
#include "UnrealEnginePython.h"
UPythonProject::UPythonProject(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
Path = PythonModul... | /content/code_sandbox/Source/PythonEditor/Private/PythonProject.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 78 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Widgets/Text/SMultiLineEditableText.h"
class SPythonEditableText : public SMultiLineEditableText
{
DECLARE_DELEGATE(FOnExecuted);
SLATE_BEGIN_ARGS( SPythonEditableText )
{}
/** The initial text that will appear in the widget. */
SLATE_ATTRIBUTE(FText,... | /content/code_sandbox/Source/PythonEditor/Private/SPythonEditableText.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 366 |
```c++
#include "PythonEditorCustomization.h"
UPythonEditorCustomization::UPythonEditorCustomization(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
const FControlCustomization& UPythonEditorCustomization::GetControl(const FName& ControlCustomizationName)
{
static FControlCustomization ... | /content/code_sandbox/Source/PythonEditor/Private/PythonEditorCustomization.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 105 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PythonEditorCustomization.generated.h"
USTRUCT()
struct FTextCustomization
{
GENERATED_USTRUCT_BODY()
FTextCustomization()
: Font("")
, Color(0.0f, 0.0f, 0.0f, 1.0f)
{
}
UPROPERTY(EditAnywhere, Category=Text)
FString Font;
UPROPERTY(EditAnywhe... | /content/code_sandbox/Source/PythonEditor/Private/PythonEditorCustomization.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 273 |
```c++
#include "SProjectViewItem.h"
#include "Runtime/Slate/Public/Widgets/Text/SInlineEditableTextBlock.h"
#include "Runtime/Core/Public/Internationalization/BreakIterator.h"
#include "PythonEditorStyle.h"
#define LOCTEXT_NAMESPACE "ProjectViewItem"
void SProjectViewItem::Construct(const FArguments& InArgs)
{
Tr... | /content/code_sandbox/Source/PythonEditor/Private/SProjectViewItem.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 477 |
```objective-c
#pragma once
#include "PythonProjectItem.h"
DECLARE_DELEGATE_TwoParams(FOnDirectoryScanned, const FString& /*InPathName*/, EPythonProjectItemType::Type /*InType*/);
class FDirectoryScanner
{
public:
static bool Tick();
static void AddDirectory(const FString& PathName, const FOnDirectoryScanned& On... | /content/code_sandbox/Source/PythonEditor/Private/DirectoryScanner.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 105 |
```c++
#include "SPythonProjectEditor.h"
#include "SProjectViewItem.h"
#include "DirectoryScanner.h"
#include "Runtime/Slate/Public/Widgets/Images/SThrobber.h"
#include "PythonEditorStyle.h"
#include "PythonProjectEditor.h"
#include "PythonProject.h"
#define LOCTEXT_NAMESPACE "PythonProjectEditor"
void SPythonProje... | /content/code_sandbox/Source/PythonEditor/Private/SPythonProjectEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,012 |
```c++
#include "DirectoryScanner.h"
#include "Runtime/Core/Public/Misc/IQueuedWork.h"
#include "Runtime/Core/Public/GenericPlatform/GenericPlatformFile.h"
#include "PythonProjectItem.h"
TArray<FDirectoryScannerCommand*> FDirectoryScanner::CommandQueue;
struct FDirectoryResult
{
FDirectoryResult(const FString& InPa... | /content/code_sandbox/Source/PythonEditor/Private/DirectoryScanner.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 784 |
```objective-c
#pragma once
#include "SlateCore.h"
#include "Runtime/Slate/Public/Widgets/Layout/SScrollBar.h"
class SPythonEditor : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SPythonEditor) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, class UPythonProjectItem* InPythonProjectItem);
bool... | /content/code_sandbox/Source/PythonEditor/Private/SPythonEditor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 201 |
```objective-c
#pragma once
#include "Runtime/SlateCore/Public/Styling/SlateTypes.h"
#include "PythonSyntaxTokenizer.h"
#include "Runtime/Slate/Public/Framework/Text/PlainTextLayoutMarshaller.h"
#include "Runtime/Slate/Public/Framework/Text/ITextDecorator.h"
#include "PythonEditorStyle.h"
class FPYRichTextSyntaxHig... | /content/code_sandbox/Source/PythonEditor/Private/PYRichTextSyntaxHighlighterTextLayoutMarshaller.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 794 |
```c++
#include "PythonProjectEditor.h"
#include "SPythonEditor.h"
#include "SPythonProjectEditor.h"
#include "Runtime/Slate/Public/Widgets/Docking/SDockTab.h"
#include "PythonProjectEditorToolbar.h"
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowUObjectDocuments.h"
#include "Editor/Kismet/Public/WorkflowO... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 4,277 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PythonProjectItem.generated.h"
/** Types of project items. Note that the enum ordering determines the tree sorting */
UENUM()
namespace EPythonProjectItemType
{
enum Type
{
Project,
Folder,
File
};
}
UCLASS()
class UPythonProjectItem : public UObj... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectItem.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 223 |
```c++
#include "PythonProjectEditorToolbar.h"
#include "LevelEditorActions.h"
#include "SourceCodeNavigation.h"
#include "EditorStyleSet.h"
#include "Runtime/Slate/Public/Framework/MultiBox/MultiBoxExtender.h"
#include "PythonProjectEditor.h"
#include "PythonProjectEditorCommands.h"
void FPythonProjectEditorToolbar... | /content/code_sandbox/Source/PythonEditor/Private/PythonProjectEditorToolbar.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 389 |
```smalltalk
using UnrealBuildTool;
using System.IO;
public class PythonConsole : ModuleRules
{
#if WITH_FORWARDED_MODULE_RULES_CTOR
public PythonConsole(ReadOnlyTargetRules Target) : base(Target)
#else
public PythonConsole(TargetInfo Target)
#endif
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplici... | /content/code_sandbox/Source/PythonConsole/PythonConsole.Build.cs | smalltalk | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 234 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PyFbxFactory.generated.h"
UCLASS(hidecategories = Object)
class UPyFbxFactory : public UFbxFactory
{
GENERATED_BODY()
UPyFbxFactory(const FObjectInitializer& ObjectInitializer);
virtual bool ConfigureProperties() override;
virtual void PostInitPrope... | /content/code_sandbox/Source/PythonConsole/Public/PyFbxFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 207 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PythonScriptFactory.generated.h"
UCLASS()
class UPythonScriptFactory : public UFactory
{
GENERATED_UCLASS_BODY()
public:
virtual UObject* FactoryCreateFile(UClass * Class, UObject *InParent, FName InName, EObjectFlags Flags, const FString& Filename, const... | /content/code_sandbox/Source/PythonConsole/Public/PythonScriptFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 94 |
```objective-c
#pragma once
#include "UnrealEd.h"
#include "PyFactory.generated.h"
UCLASS()
class UPyFactory : public UFactory
{
GENERATED_BODY()
public:
virtual UObject* FactoryCreateFile(UClass * Class, UObject *InParent, FName InName, EObjectFlags Flags, const FString& Filename, const TCHAR* Parms, FFeedbackCo... | /content/code_sandbox/Source/PythonConsole/Public/PyFactory.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 392 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/SlateBasics.h"
/** Style of the debug console */
namespace EPythonConsoleStyle
{
enum Type
{
/** Shows the debug console input line with tab completion only */
Compact,
/** Shows a scrollable log window with the input line on the bottom */
WithLog... | /content/code_sandbox/Source/PythonConsole/Public/PythonConsoleModule.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 217 |
```c++
#include "SPythonLog.h"
#include "Runtime/Slate/Public/Widgets/Layout/SScrollBorder.h"
#include "GameFramework/GameMode.h"
#include "Engine/LocalPlayer.h"
#include "GameFramework/GameState.h"
#include "Runtime/Slate/Public/Widgets/Input/SSearchBox.h"
#include "Runtime/Launch/Resources/Version.h"
#include "Runti... | /content/code_sandbox/Source/PythonConsole/Private/SPythonLog.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 4,125 |
```objective-c
#pragma once
#include "Runtime/SlateCore/Public/SlateCore.h"
#include "EditorStyle.h"
#include "PythonConsoleModule.h"
/**
* Debug console widget, designed to be summoned on top of a viewport or window
*/
class SPythonConsole : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SPythonConsole)
{
... | /content/code_sandbox/Source/PythonConsole/Private/SPythonConsole.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 350 |
```c++
#include "PyFbxFactory.h"
#include "FbxMeshUtils.h"
#include "Runtime/Launch/Resources/Version.h"
UPyFbxFactory::UPyFbxFactory(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
// disable automatic detection of the factory
ImportPriority = -1;
}
bool UPyFbxFactory::ConfigurePropert... | /content/code_sandbox/Source/PythonConsole/Private/PyFbxFactory.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 478 |
```c++
#include "SPythonConsole.h"
#include "PythonConsoleModule.h"
#include "SPythonConsole.h"
#include "SPythonLog.h"
namespace PythonConsoleDefs
{
// How many seconds to animate when console is summoned
static const float IntroAnimationDuration = 0.25f;
}
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
void SPythonCon... | /content/code_sandbox/Source/PythonConsole/Private/SPythonConsole.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 985 |
```c++
#include "PythonScriptFactory.h"
#include "PythonScript.h"
UPythonScriptFactory::UPythonScriptFactory(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) {
Formats.Add(FString("py;Python Script"));
bCreateNew = false;
bEditAfterNew = true;
bEditorImport = true;
SupportedClass = UPy... | /content/code_sandbox/Source/PythonConsole/Private/PythonScriptFactory.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 180 |
```c++
#include "PythonConsoleModule.h"
#include "SPythonConsole.h"
#include "SPythonLog.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h"
#include "Runtime/Slate/Public/Widgets/Docking/SDockTab.h"
#include "Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructure.h"
IMPLEMENT_MODUL... | /content/code_sandbox/Source/PythonConsole/Private/PythonConsoleModule.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 729 |
```objective-c
#pragma once
#include "Runtime/Slate/Public/Framework/Text/BaseTextLayoutMarshaller.h"
#include "Runtime/Core/Public/Misc/TextFilterExpressionEvaluator.h"
#include "Runtime/SlateCore/Public/SlateCore.h"
#include "UnrealEnginePython.h"
#include "Runtime/Slate/Public/Widgets/Input/SMultiLineEditableTextBo... | /content/code_sandbox/Source/PythonConsole/Private/SPythonLog.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,369 |
```smalltalk
using UnrealBuildTool;
using System.IO;
using System.Collections.Generic;
public class UnrealEnginePython : ModuleRules
{
// leave this string as empty for triggering auto-discovery of python installations...
private string pythonHome = "";
// otherwise specify the path of your python instal... | /content/code_sandbox/Source/UnrealEnginePython/UnrealEnginePython.Build.cs | smalltalk | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,313 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--Plugin additions-->
<root xmlns:android="path_to_url">
<!-- init section is always evaluated once per architecture -->
<init>
<log text="python APL init"/>
</init>
<!-- optional files or directories to copy to Intermediate/Android/APK -->
<r... | /content/code_sandbox/Source/UnrealEnginePython/UnrealEnginePython_APL.xml | xml | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 280 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#if WITH_EDITOR
#include "Factories/Factory.h"
#include "Runtime/SlateCore/Public/Widgets/SWindow.h"
#endif
class FPythonSmartDelegate : public TSharedFromThis<FPythonSmartDelegate>
{
public:
FPythonSmartDelegate();
~FPythonSmartDelegate();
void SetPyCa... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonSmartDelegate.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 144 |
```objective-c
#pragma once
#include "UObject/Class.h"
#include "UnrealEnginePython.h"
#include "Components/NativeWidgetHost.h"
#include "PyNativeWidgetHost.generated.h"
USTRUCT(BlueprintType)
struct UNREALENGINEPYTHON_API FPythonSWidgetWrapper
{
GENERATED_USTRUCT_BODY()
TSharedPtr<SWidget> Widget;
};
templat... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyNativeWidgetHost.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 184 |
```objective-c
#pragma once
#include "GameFramework/Pawn.h"
#include "UnrealEnginePython.h"
#include "PyPawn.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyPawn : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyPawn();
~APyPa... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyPawn.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 310 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "UObject/UObjectGlobals.h"
#include "UObject/WeakObjectPtr.h"
#include "Widgets/SWidget.h"
#include "Slate/UEPySlateDelegate.h"
#include "Runtime/CoreUObject/Public/UObject/GCObject.h"
#include "PythonDelegate.h"
#include "PythonSmartDelegate.h"
cla... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonHouseKeeper.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 720 |
```objective-c
#pragma once
#include "GameFramework/Actor.h"
#include "UnrealEnginePython.h"
#include "PyActor.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyActor();
~... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyActor.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 366 |
```objective-c
#pragma once
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wdelete-non-virtual-dtor"
#endif
//#define UEPY_MEMORY_DEBUG 1
#include "CoreMinimal.h"
#include "Runtime/Core/Public/Modules/ModuleManager.h"
#include "Runtime/SlateCore/Public/Styling/SlateStyle.h"
#include "UObject/ScriptMacro... | /content/code_sandbox/Source/UnrealEnginePython/Public/UnrealEnginePython.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 915 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonClass.generated.h"
void unreal_engine_py_log_error();
UCLASS()
class UPythonClass : public UClass
{
GENERATED_BODY()
public:
void SetPyConstructor(PyObject *callable)
{
py_constructor = callable;
Py_INCREF(py_constructor);
}
void... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonClass.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 172 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonFunction.generated.h"
UCLASS()
class UPythonFunction : public UFunction
{
GENERATED_BODY()
public:
~UPythonFunction();
void SetPyCallable(PyObject *callable);
DECLARE_FUNCTION(CallPythonCallable);
PyObject *py_callable;
};
``` | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonFunction.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 66 |
```objective-c
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "UnrealEnginePython.h"
#include "PythonBlueprintFunctionLibrary.generated.h"
UCLASS()
class UNREALENGINEPYTHON_API UPythonBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCal... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonBlueprintFunctionLibrary.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 107 |
```objective-c
#pragma once
#include "Components/ActorComponent.h"
#include "UnrealEnginePython.h"
#include "PythonComponent.generated.h"
UCLASS(BlueprintType, Blueprintable, ClassGroup = (Python), meta = (BlueprintSpawnableComponent))
class UNREALENGINEPYTHON_API UPythonComponent : public UActorComponent
{
GENERA... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonComponent.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 681 |
```objective-c
#pragma once
#include "Commandlets/Commandlet.h"
#include "PyCommandlet.generated.h"
UCLASS()
class UPyCommandlet : public UCommandlet
{
GENERATED_UCLASS_BODY()
virtual int32 Main(const FString& Params) override;
};
``` | /content/code_sandbox/Source/UnrealEnginePython/Public/PyCommandlet.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 55 |
```objective-c
#pragma once
#include "GameFramework/Character.h"
#include "UnrealEnginePython.h"
#include "PyCharacter.generated.h"
UCLASS()
class UNREALENGINEPYTHON_API APyCharacter : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyCharacter();
~APyCharac... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyCharacter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 527 |
```objective-c
#pragma once
#include "GameFramework/HUD.h"
#include "UnrealEnginePython.h"
#include "PyHUD.generated.h"
UCLASS(BlueprintType, Blueprintable)
class UNREALENGINEPYTHON_API APyHUD : public AHUD
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
APyHUD();
~APyHUD();
... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyHUD.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 280 |
```objective-c
#pragma once
#include "Runtime/UMG/Public/Blueprint/UserWidget.h"
#include "UnrealEnginePython.h"
#include "Runtime/Launch/Resources/Version.h"
#include "PyUserWidget.generated.h"
#if ENGINE_MINOR_VERSION < 20
#define NativePaintArgs FPaintContext & InContext
#define NativePaintRetValue void
#else
#def... | /content/code_sandbox/Source/UnrealEnginePython/Public/PyUserWidget.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 664 |
```objective-c
#pragma once
#include "UObject/Object.h"
#include "UObject/ScriptMacros.h"
#include "PythonScript.generated.h"
UCLASS(MinimalAPI)
class UPythonScript : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "Python")
FString ScriptPath;
UPROPERTY(EditAnywhere, Category = "... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonScript.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 113 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonDelegate.generated.h"
UCLASS()
class UPythonDelegate : public UObject
{
GENERATED_BODY()
public:
UPythonDelegate();
~UPythonDelegate();
virtual void ProcessEvent(UFunction *function, void *Parms) override;
void SetPyCallable(PyObject *c... | /content/code_sandbox/Source/UnrealEnginePython/Public/PythonDelegate.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 128 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
UScriptStruct *u_struct;
uint8 *u_struct_ptr;
// if set, the struct is responsible for freeing memory
int u_struct_owned;
} ue_PyUScriptStruct;
PyObject *py_ue_new_uscriptstruct(UScriptStruct ... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUScriptStruct.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 162 |
```c++
#include "PyPawn.h"
#include "UEPyModule.h"
APyPawn::APyPawn()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
void APyPawn::PostInitializeComponents()
{
Super::PostInitializeComponents();
if (!py_pawn_instance)
return;
FScopePythonGIL ... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyPawn.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,427 |
```c++
#include "PythonFunction.h"
#include "UEPyModule.h"
void UPythonFunction::SetPyCallable(PyObject *callable)
{
py_callable = callable;
Py_INCREF(py_callable);
}
#if ENGINE_MINOR_VERSION > 18
void UPythonFunction::CallPythonCallable(UObject *Context, FFrame& Stack, RESULT_DECL)
#else
void UPythonFunction::C... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonFunction.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,001 |
```c++
#include "PyUserWidget.h"
#include "PyNativeWidgetHost.h"
#include "PythonDelegate.h"
#include "Slate/UEPyFGeometry.h"
#include "Slate/UEPyFPaintContext.h"
#include "Widgets/Layout/SBox.h"
#include "UMGStyle.h"
#include "Runtime/UMG/Public/Blueprint/WidgetTree.h"
#include "Slate/UEPyFKeyEvent.h"
#include "Sl... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyUserWidget.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,861 |
```c++
#include "UEPyCallable.h"
// destructor
static void ue_pycallable_dealloc(ue_PyCallable *self)
{
#if defined(UEPY_MEMORY_DEBUG)
UE_LOG(LogPython, Warning, TEXT("Destroying ue_PyCallable %p mapped to UFunction %p"), self, self->u_function);
#endif
Py_TYPE(self)->tp_free((PyObject *)self);
}
static PyObject* u... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyCallable.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 712 |
```c++
#include "UEPyAssetUserData.h"
#if WITH_EDITOR
PyObject *py_ue_asset_import_data(ue_PyUObject * self, PyObject * args)
{
ue_py_check(self);
UStruct *u_struct = (UStruct *)self->ue_object->GetClass();
UClassProperty *u_property = (UClassProperty *)u_struct->FindPropertyByName(TEXT("AssetImportData"));
if ... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyAssetUserData.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 829 |
```c++
#include "UEPyIPlugin.h"
#if WITH_EDITOR
#include "Runtime/Projects/Public/Interfaces/IPluginManager.h"
static PyObject *py_ue_iplugin_get_name(ue_PyIPlugin *self, PyObject * args)
{
return PyUnicode_FromString(TCHAR_TO_UTF8(*(self->plugin->GetName())));
}
static PyObject *py_ue_iplugin_get_base_dir(ue_PyI... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyIPlugin.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,773 |
```objective-c
#pragma once
#include "UEPyModule.h"
PyObject *py_ue_vlog(ue_PyUObject *, PyObject *);
PyObject *py_ue_vlog_cylinder(ue_PyUObject *, PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyVisualLogger.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 41 |
```c++
#include "UEPyUScriptStruct.h"
static PyObject *py_ue_uscriptstruct_get_field(ue_PyUScriptStruct *self, PyObject * args)
{
char *name;
int index = 0;
if (!PyArg_ParseTuple(args, "s|i:get_field", &name, &index))
{
return nullptr;
}
UProperty *u_property = self->u_struct->FindPropertyByName(FName(UTF8_... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUScriptStruct.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 3,320 |
```c++
#include "UEPyEditor.h"
#if WITH_EDITOR
#include "Developer/AssetTools/Public/AssetToolsModule.h"
#include "Editor/UnrealEd/Classes/Factories/Factory.h"
#include "Runtime/AssetRegistry/Public/AssetRegistryModule.h"
#include "Kismet2/KismetEditorUtilities.h"
#include "Editor/ContentBrowser/Public/ContentBrowse... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEditor.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 18,481 |
```c++
#include "PythonSmartDelegate.h"
#include "UEPyModule.h"
#if WITH_EDITOR
#include "Slate/UEPySWindow.h"
#endif
FPythonSmartDelegate::FPythonSmartDelegate()
{
py_callable = nullptr;
}
void FPythonSmartDelegate::SetPyCallable(PyObject *callable)
{
// do not acquire the gil here as we set the callable in pyt... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonSmartDelegate.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 509 |
```c++
#include "UEPyModule.h"
#include "PythonClass.h"
#include "UObject/UEPyObject.h"
// hack for avoiding loops in class constructors (thanks to the Unreal.js project for the idea)
UClass *ue_py_class_constructor_placeholder = nullptr;
static void UEPyClassConstructor(UClass *u_class, const FObjectInitializer &Obje... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPySubclassing.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 4,375 |
```c++
#include "UEPyUStructsImporter.h"
static PyObject *ue_PyUStructsImporter_getattro(ue_PyUStructsImporter *self, PyObject *attr_name)
{
PyObject *py_attr = PyObject_GenericGetAttr((PyObject *)self, attr_name);
if (!py_attr)
{
if (PyUnicodeOrString_Check(attr_name))
{
const char *attr = UEPyUnicode_AsUTF... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUStructsImporter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 651 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyEnumsImporter;
PyObject *py_ue_new_enumsimporter();
void ue_python_init_enumsimporter(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEnumsImporter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 57 |
```c++
#include "PythonScript.h"
#include "UEPyModule.h"
static void callback(void *arg)
{
UPythonScript *self = (UPythonScript *)arg;
self->CallSpecificFunctionWithArgs();
}
void UPythonScript::Run()
{
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("Unreal... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonScript.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 306 |
```objective-c
#pragma once
#include "UEPyModule.h"
PyObject *py_unreal_engine_log(PyObject *, PyObject *);
PyObject *py_unreal_engine_log_warning(PyObject *, PyObject *);
PyObject *py_unreal_engine_log_error(PyObject *, PyObject *);
PyObject *py_unreal_engine_add_on_screen_debug_message(PyObject *, PyObject *);
Py... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyEngine.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 870 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Runtime/Core/Public/Containers/Ticker.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FDelegateHandle dhandle;
bool garbaged;
TSharedPtr<FPythonSmartDelegate> delegate_ptr;
} ue_PyFDelegateHandle;
PyObject *py_unreal_engine_a... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTicker.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 108 |
```c++
#include "UEPyTicker.h"
// destructor
static void ue_pyfdelegatehandle_dealloc(ue_PyFDelegateHandle *self)
{
if (!self->garbaged)
{
FTicker::GetCoreTicker().RemoveTicker(self->dhandle);
// useless ;)
self->garbaged = true;
}
if (self->delegate_ptr.IsValid())
{
self->delegate_ptr.Reset();
}
Py_... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTicker.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 947 |
```c++
#include "PythonBlueprintFunctionLibrary.h"
void UPythonBlueprintFunctionLibrary::ExecutePythonScript(FString script)
{
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
PythonModule.RunFile(TCHAR_TO_UTF8(*script));
}
void UPythonBl... | /content/code_sandbox/Source/UnrealEnginePython/Private/PythonBlueprintFunctionLibrary.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 129 |
```objective-c
#pragma once
#include "UnrealEnginePython.h"
#include "PythonDelegate.h"
#include "PythonSmartDelegate.h"
#include "UEPyUScriptStruct.h"
#include "PythonHouseKeeper.h"
// common wrappersno
#include "Wrappers/UEPyFVector.h"
#include "Wrappers/UEPyFRotator.h"
#include "Wrappers/UEPyFQuat.h"
#include "Wra... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyModule.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 760 |
```c++
#include "PyCommandlet.h"
#include "UEPyModule.h"
#if WITH_EDITOR
#include "Editor.h"
#endif
#include "Runtime/Core/Public/Internationalization/Regex.h"
UPyCommandlet::UPyCommandlet(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
LogToConsole = 1;
}
int32 UPyCommandlet::Main(cons... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyCommandlet.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,006 |
```c++
#include "UEPyTimer.h"
#include "Engine/World.h"
#include "Runtime/Engine/Public/TimerManager.h"
static PyObject *py_ue_ftimerhandle_clear(ue_PyFTimerHandle *self, PyObject * args)
{
if (!self->world.IsValid())
return PyErr_Format(PyExc_Exception, "World's timer is invalid");
self->world.Get()->GetTimerMa... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTimer.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 1,145 |
```c++
#include "UEPyUClassesImporter.h"
static PyObject *ue_PyUClassesImporter_getattro(ue_PyUClassesImporter *self, PyObject *attr_name)
{
PyObject *py_attr = PyObject_GenericGetAttr((PyObject *)self, attr_name);
if (!py_attr)
{
if (PyUnicodeOrString_Check(attr_name))
{
const char *attr = UEPyUnicode_AsUTF... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUClassesImporter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 611 |
```objective-c
#pragma once
#include "UEPyModule.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
} ue_PyUStructsImporter;
PyObject *py_ue_new_ustructsimporter();
void ue_python_init_ustructsimporter(PyObject *);
``` | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyUStructsImporter.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 62 |
```c++
#include "UnrealEnginePython.h"
#include "UEPyModule.h"
#include "PythonBlueprintFunctionLibrary.h"
#include "HAL/IConsoleManager.h"
#include "HAL/PlatformFilemanager.h"
#if ENGINE_MINOR_VERSION < 13
#include "ClassIconFinder.h"
#endif
#include "Styling/SlateStyleRegistry.h"
#if WITH_EDITOR
#include "Interface... | /content/code_sandbox/Source/UnrealEnginePython/Private/UnrealEnginePython.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 5,654 |
```c++
#include "PyCharacter.h"
#include "UEPyModule.h"
#include "Components/InputComponent.h"
APyCharacter::APyCharacter()
{
PrimaryActorTick.bCanEverTick = true;
PythonTickForceDisabled = false;
PythonDisableAutoBinding = false;
}
// Called when the game starts
void APyCharacter::PreInitializeComponents()
{
... | /content/code_sandbox/Source/UnrealEnginePython/Private/PyCharacter.cpp | c++ | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 2,619 |
```objective-c
#pragma once
#include "UEPyModule.h"
#include "Engine/EngineTypes.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FTimerHandle thandle;
TWeakObjectPtr<UWorld> world;
TSharedPtr<FPythonSmartDelegate> delegate_ptr;
} ue_PyFTimerHandle;
PyObject *py_ue_set_timer(ue_PyUObjec... | /content/code_sandbox/Source/UnrealEnginePython/Private/UEPyTimer.h | objective-c | 2016-08-07T05:00:51 | 2024-08-14T06:32:20 | UnrealEnginePython | 20tab/UnrealEnginePython | 2,715 | 98 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.