FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/examples/blueprint_variables.py at master · uoodong/UnrealEnginePython · GitHub
uoodong
UnrealEnginePython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
examples
/
blueprint_variables.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (18 loc) · 1.46 KB
Breadcrumbs
UnrealEnginePython
/
examples
/
blueprint_variables.py
Copy path
File metadata and controls
28 lines (18 loc) · 1.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import
unreal_engine
as
ue
from
unreal_engine
.
classes
import
Material
,
BlueprintFactory
,
Blueprint
,
Actor
,
Texture2D
,
SkeletalMesh
from
unreal_engine
.
structs
import
EdGraphPinType
,
Vector
,
Rotator
,
EdGraphTerminalType
from
unreal_engine
.
enums
import
EPinContainerType
import
time
bp
=
ue
.
create_blueprint
(
Actor
,
'/Game/FooActor'
+
str
(
int
(
time
.
time
())))
pin
=
EdGraphPinType
(
PinCategory
=
'object'
,
PinSubCategoryObject
=
Material
)
ue
.
blueprint_add_member_variable
(
bp
,
'TestMat'
,
pin
,
None
,
'/Engine/MapTemplates/Materials/BasicAsset03.BasicAsset03'
)
pin
=
EdGraphPinType
(
PinCategory
=
'class'
,
PinSubCategoryObject
=
Texture2D
)
ue
.
blueprint_add_member_variable
(
bp
,
'TestTextureClass'
,
pin
)
pin
=
EdGraphPinType
(
PinCategory
=
'struct'
,
PinSubCategoryObject
=
Vector
)
ue
.
blueprint_add_member_variable
(
bp
,
'TestVector'
,
pin
,
None
,
'17,22,30'
)
pin
=
EdGraphPinType
(
PinCategory
=
'struct'
,
PinSubCategoryObject
=
Rotator
,
ContainerType
=
EPinContainerType
.
Array
)
ue
.
blueprint_add_member_variable
(
bp
,
'TestRotator'
,
pin
,
None
,
'((Pitch=0.000000,Yaw=3.000000,Roll=0.000000),(Pitch=1.000000,Yaw=0.000000,Roll=0.000000))'
)
pin
=
EdGraphPinType
(
PinCategory
=
'string'
,
ContainerType
=
EPinContainerType
.
Map
,
PinValueType
=
EdGraphTerminalType
(
TerminalCategory
=
'object'
,
TerminalSubCategoryObject
=
SkeletalMesh
))
ue
.
blueprint_add_member_variable
(
bp
,
'TestMap'
,
pin
,
None
,
'(("firstKey", SkeletalMesh
\'
"/Game/Skel001"
\'
),("secondKey", SkeletalMesh
\'
"/Game/Skel002"
\'
))'
)
ue
.
compile_blueprint
(
bp
)
ue
.
open_editor_for_asset
(
bp
)
Back
|
FazBrowse Home
|
New Git URL