pub enum EditorAction {
Show 92 variants
ToggleGroundGrid,
ToggleSky,
ToggleLitUnlit,
ToggleViewerMode,
SetViewerMode(bool),
FrameScene,
ToggleFrameOnLoad,
ClearScene,
SnapSelectionToFloor,
BakeNavmesh,
ToggleNavmeshDebug,
SetAtmosphere(Atmosphere),
SetGizmoMode(GizmoMode),
RandomizeBoth,
SelectEntity(u32),
ToggleSelectEntity(u32),
ClearSelection,
AddEntityChild(u32),
ViewCamera(u32),
ToggleSnap,
ToggleSkeletonView,
SetMaterialVariant(Option<String>),
ToggleCameraGizmos,
ToggleShowNormals,
ToggleDayNightCycle,
SetDayNightHour(f32),
LoadKhronosByIndex(usize),
LoadPolyhavenByIndex {
category: PolyhavenCategory,
index: usize,
},
SetPolyhavenResolution(u32),
RefreshBrowsers,
DeepLink(String),
SpawnLines,
SpawnMeshes,
Spawn3DText,
SpawnTextLattice,
ClothSponza,
NewProject,
LoadExampleProject,
SaveProject,
ExportGlb,
SaveSelectedAsPrefab,
RefreshSelectedPrefab,
BreakSelectedPrefabLink,
SpawnPrefab(String),
Undo,
Redo,
DeleteEntity(u32),
DeleteSelectedEntity,
DuplicateEntity(u32),
DuplicateSelectedEntity,
AddShape(ShapeKind),
AddInstancedShape(ShapeKind),
ConvertSimilarToInstanced,
AddEmpty,
AddCamera,
AddPlayerSpawn,
AddSavePoint,
AddPatrolPoint,
AddTriggerVolume,
StampDecalAtCursor,
AddLight(LightKind),
AddTagToSelected(String),
RemoveTagFromSelected(String),
ToggleGreyboxMode,
ApplyGreyboxToSelection,
SnapSelectionToGrid,
MarkSelectionAsBrush,
ToggleShowFinal,
ToggleScripting,
SetScripting(bool),
SetPlayground(bool),
LoadLesson(String),
GlobalScript(GlobalScriptCommand),
TogglePushPull,
SetPlacementActive(bool),
SetPlacementShape(ShapeKind),
SetPlacementSize([f32; 3]),
SetOrientToNormal(bool),
RunGenerator(GeneratorKind),
SetGenerationSettings(GenerationSettings),
SetPaletteIndex(usize),
SetSnapEnabled(bool),
SetSnapSteps {
translation: f32,
rotation_degrees: f32,
scale: f32,
},
SetRotationSpeed(f32),
SetEntityLayer {
id: u32,
layer: Option<u32>,
},
SetEntityChunk {
id: u32,
chunk: Option<u32>,
},
AddSceneLayer,
RemoveSceneLayer(u32),
UpdateSceneLayer(SceneLayerConfig),
AddSceneChunk,
RemoveSceneChunk(u32),
UpdateSceneChunk(SceneChunkConfig),
}Expand description
Editor commands that need no payload beyond what they carry. Entity references are raw entity ids resolved by the worker.
Variants§
ToggleGroundGrid
ToggleSky
ToggleLitUnlit
ToggleViewerMode
SetViewerMode(bool)
FrameScene
ToggleFrameOnLoad
ClearScene
SnapSelectionToFloor
SetAtmosphere(Atmosphere)
SetGizmoMode(GizmoMode)
RandomizeBoth
SelectEntity(u32)
ToggleSelectEntity(u32)
ClearSelection
AddEntityChild(u32)
ViewCamera(u32)
ToggleSnap
ToggleSkeletonView
SetMaterialVariant(Option<String>)
ToggleCameraGizmos
ToggleShowNormals
ToggleDayNightCycle
SetDayNightHour(f32)
LoadKhronosByIndex(usize)
LoadPolyhavenByIndex
SetPolyhavenResolution(u32)
RefreshBrowsers
DeepLink(String)
SpawnLines
SpawnMeshes
Spawn3DText
SpawnTextLattice
ClothSponza
NewProject
LoadExampleProject
SaveProject
ExportGlb
SaveSelectedAsPrefab
RefreshSelectedPrefab
BreakSelectedPrefabLink
SpawnPrefab(String)
Undo
Redo
DeleteEntity(u32)
DeleteSelectedEntity
DuplicateEntity(u32)
DuplicateSelectedEntity
AddShape(ShapeKind)
AddInstancedShape(ShapeKind)
ConvertSimilarToInstanced
AddEmpty
AddCamera
AddPlayerSpawn
AddSavePoint
AddPatrolPoint
AddTriggerVolume
StampDecalAtCursor
AddLight(LightKind)
AddTagToSelected(String)
RemoveTagFromSelected(String)
ToggleGreyboxMode
ApplyGreyboxToSelection
SnapSelectionToGrid
MarkSelectionAsBrush
ToggleShowFinal
ToggleScripting
SetScripting(bool)
Start or stop scripting mode (run the scene’s scripts) explicitly,
unlike ToggleScripting.
SetPlayground(bool)
Enter or leave the playground: snapshot the authored scene and clear to a clean scratch scene that runs a single lesson script, or restore the scene on the way out.
LoadLesson(String)
Replace the playground’s lesson script and reset its scratch scene.
GlobalScript(GlobalScriptCommand)
TogglePushPull
SetPlacementActive(bool)
SetPlacementShape(ShapeKind)
SetPlacementSize([f32; 3])
SetOrientToNormal(bool)
RunGenerator(GeneratorKind)
SetGenerationSettings(GenerationSettings)
SetPaletteIndex(usize)
SetSnapEnabled(bool)
SetSnapSteps
SetRotationSpeed(f32)
SetEntityLayer
SetEntityChunk
AddSceneLayer
RemoveSceneLayer(u32)
UpdateSceneLayer(SceneLayerConfig)
AddSceneChunk
RemoveSceneChunk(u32)
UpdateSceneChunk(SceneChunkConfig)
Trait Implementations§
Source§impl Clone for EditorAction
impl Clone for EditorAction
Source§fn clone(&self) -> EditorAction
fn clone(&self) -> EditorAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorAction
impl Debug for EditorAction
Source§impl<'de> Deserialize<'de> for EditorAction
impl<'de> Deserialize<'de> for EditorAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EditorAction
impl PartialEq for EditorAction
Source§impl Serialize for EditorAction
impl Serialize for EditorAction
impl StructuralPartialEq for EditorAction
Auto Trait Implementations§
impl Freeze for EditorAction
impl RefUnwindSafe for EditorAction
impl Send for EditorAction
impl Sync for EditorAction
impl Unpin for EditorAction
impl UnsafeUnpin for EditorAction
impl UnwindSafe for EditorAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit event.Source§impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
Source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
Source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.
Source§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
impl<T> SerializableAny for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.